From 095397259ae233f440142905a368b082369934f4 Mon Sep 17 00:00:00 2001 From: Abel Perez Martinez Date: Sun, 29 May 2022 17:27:54 +0100 Subject: [PATCH 1/3] Added new values to allow custom ports --- .../templates/deployment.yaml | 16 +++++++++------- .../templates/service.yaml | 2 +- charts/opentelemetry-operator/values.yaml | 6 ++++++ 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/charts/opentelemetry-operator/templates/deployment.yaml b/charts/opentelemetry-operator/templates/deployment.yaml index 3a509cb4b..f5662f8c3 100644 --- a/charts/opentelemetry-operator/templates/deployment.yaml +++ b/charts/opentelemetry-operator/templates/deployment.yaml @@ -23,8 +23,10 @@ spec: hostNetwork: {{ .Values.hostNetwork }} containers: - args: - - --metrics-addr=127.0.0.1:8080 + - --metrics-addr=127.0.0.1:{{ .Values.manager.ports.metricsPort }} - --enable-leader-election + - --health-probe-addr=:{{ .Values.manager.ports.healthzPort }} + - --webhook-port={{ .Values.manager.ports.webhookPort }} {{- if and .Values.manager.collectorImage.repository .Values.manager.collectorImage.tag }} - --collector-image={{ .Values.manager.collectorImage.repository }}:{{ .Values.manager.collectorImage.tag }} {{- end }} @@ -40,19 +42,19 @@ spec: image: "{{ .Values.manager.image.repository }}:{{ .Values.manager.image.tag }}" name: manager ports: - - containerPort: 9443 + - containerPort: {{ .Values.manager.ports.webhookPort }} name: webhook-server protocol: TCP livenessProbe: httpGet: path: /healthz - port: 8081 + port: {{ .Values.manager.ports.healthzPort }} initialDelaySeconds: 15 periodSeconds: 20 readinessProbe: httpGet: path: /readyz - port: 8081 + port: {{ .Values.manager.ports.healthzPort }} initialDelaySeconds: 5 periodSeconds: 10 resources: {{ toYaml .Values.manager.resources | nindent 12 }} @@ -61,14 +63,14 @@ spec: name: cert readOnly: true - args: - - --secure-listen-address=0.0.0.0:8443 - - --upstream=http://127.0.0.1:8080/ + - --secure-listen-address=0.0.0.0:{{ .Values.kubeRBACProxy.ports.proxyPort }} + - --upstream=http://127.0.0.1:{{ .Values.manager.ports.metricsPort }}/ - --logtostderr=true - --v=0 image: "{{ .Values.kubeRBACProxy.image.repository }}:{{ .Values.kubeRBACProxy.image.tag }}" name: kube-rbac-proxy ports: - - containerPort: 8443 + - containerPort: {{ .Values.kubeRBACProxy.ports.proxyPort }} name: https protocol: TCP {{- with .Values.kubeRBACProxy.resources }} diff --git a/charts/opentelemetry-operator/templates/service.yaml b/charts/opentelemetry-operator/templates/service.yaml index 9a64483aa..9ca9d58c0 100644 --- a/charts/opentelemetry-operator/templates/service.yaml +++ b/charts/opentelemetry-operator/templates/service.yaml @@ -27,7 +27,7 @@ spec: ports: - port: 443 protocol: TCP - targetPort: 9443 + targetPort: webhook-server selector: app.kubernetes.io/name: opentelemetry-operator control-plane: controller-manager diff --git a/charts/opentelemetry-operator/values.yaml b/charts/opentelemetry-operator/values.yaml index a4a8a1e8a..32966d55b 100644 --- a/charts/opentelemetry-operator/values.yaml +++ b/charts/opentelemetry-operator/values.yaml @@ -17,6 +17,10 @@ manager: collectorImage: repository: tag: + ports: + metricsPort: 8080 + webhookPort: 9443 + healthzPort: 8081 resources: limits: cpu: 100m @@ -34,6 +38,8 @@ kubeRBACProxy: image: repository: gcr.io/kubebuilder/kube-rbac-proxy tag: v0.8.0 + ports: + proxyPort: 8443 resources: limits: cpu: 500m From 7030e528601aa7024884377e3b73b00272e6c1b5 Mon Sep 17 00:00:00 2001 From: Abel Perez Martinez Date: Sun, 19 Jun 2022 10:30:09 +0100 Subject: [PATCH 2/3] Bumped chart's patch version by 1 --- charts/opentelemetry-operator/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/opentelemetry-operator/Chart.yaml b/charts/opentelemetry-operator/Chart.yaml index 667c0a08b..ccc267db8 100644 --- a/charts/opentelemetry-operator/Chart.yaml +++ b/charts/opentelemetry-operator/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: opentelemetry-operator -version: 0.8.1 +version: 0.8.2 description: OpenTelemetry Operator Helm chart for Kubernetes type: application home: https://opentelemetry.io/ From 85efcd64a8f9e74ebc904253b6b61346b3edde92 Mon Sep 17 00:00:00 2001 From: Abel Perez Martinez Date: Mon, 20 Jun 2022 11:07:10 +0100 Subject: [PATCH 3/3] Fixed tag position in values.yaml --- charts/opentelemetry-operator/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/opentelemetry-operator/values.yaml b/charts/opentelemetry-operator/values.yaml index 39d26cb4e..82a82527c 100644 --- a/charts/opentelemetry-operator/values.yaml +++ b/charts/opentelemetry-operator/values.yaml @@ -37,9 +37,9 @@ manager: kubeRBACProxy: image: repository: gcr.io/kubebuilder/kube-rbac-proxy + tag: v0.11.0 ports: proxyPort: 8443 - tag: v0.11.0 resources: limits: cpu: 500m