Skip to content

Commit

Permalink
fix: 🚑 include otel ports in otel collector and metrics pods
Browse files Browse the repository at this point in the history
Signed-off-by: Prashant Shahi <[email protected]>
  • Loading branch information
prashant-shahi committed Aug 8, 2022
1 parent 5be7c70 commit abd4550
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions charts/signoz/templates/otel-collector/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit abd4550

Please sign in to comment.