diff --git a/charts/signoz/Chart.yaml b/charts/signoz/Chart.yaml index 3b1b9eb7..d9a85b31 100644 --- a/charts/signoz/Chart.yaml +++ b/charts/signoz/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: signoz -version: 0.2.3 +version: 0.2.4 appVersion: "0.10.1" description: SigNoz Observability Platform Helm Chart type: application diff --git a/charts/signoz/templates/otel-collector-metrics/deployment.yaml b/charts/signoz/templates/otel-collector-metrics/deployment.yaml index d2da8d91..321cfe77 100644 --- a/charts/signoz/templates/otel-collector-metrics/deployment.yaml +++ b/charts/signoz/templates/otel-collector-metrics/deployment.yaml @@ -42,6 +42,14 @@ spec: - name: {{ template "otelCollectorMetrics.fullname" . }} image: {{ template "otelCollectorMetrics.image" . }} imagePullPolicy: {{ .Values.otelCollectorMetrics.image.pullPolicy }} + ports: + {{- range $key, $port := .Values.otelCollectorMetrics.ports }} + {{- if $port.enabled }} + - name: {{ $key }} + containerPort: {{ $port.containerPort }} + protocol: {{ $port.protocol }} + {{- end }} + {{- end }} command: - "/otelcontribcol" - "--config=/conf/otel-collector-metrics-config.yaml" diff --git a/charts/signoz/templates/otel-collector/deployment.yaml b/charts/signoz/templates/otel-collector/deployment.yaml index 91b0d31a..a843eee0 100644 --- a/charts/signoz/templates/otel-collector/deployment.yaml +++ b/charts/signoz/templates/otel-collector/deployment.yaml @@ -42,6 +42,14 @@ spec: - name: {{ template "otelCollector.fullname" . }} image: {{ template "otelCollector.image" . }} imagePullPolicy: {{ .Values.otelCollector.image.pullPolicy }} + ports: + {{- range $key, $port := .Values.otelCollector.ports }} + {{- if $port.enabled }} + - name: {{ $key }} + containerPort: {{ $port.containerPort }} + protocol: {{ $port.protocol }} + {{- end }} + {{- end }} command: - "/otelcontribcol" - "--config=/conf/otel-collector-config.yaml"