Skip to content

Commit

Permalink
Add env var OTEL_EXPORTER_OTLP_ENDPOINT
Browse files Browse the repository at this point in the history
  • Loading branch information
OysteinThuen committed Dec 11, 2024
1 parent ab60079 commit 284762a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion elvia-deployment/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.23.3
version: 0.23.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 4 additions & 0 deletions elvia-deployment/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ spec:
value: {{ required "Missing .Values.namespace" $.Values.namespace }}
- name: ELVIA_APPLICATION_NAME
value: {{ required "Missing .Values.name" $.Values.name }}
- name: OTEL_EXPORTER_OTLP_PROTOCOL
value: grpc
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://otel-collector.monitoring.svc.cluster.local:4317
{{- with $.Values.env }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion elvia-statefulset/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.9.3
version: 0.9.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 4 additions & 0 deletions elvia-statefulset/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ spec:
value: {{ required "Missing .Values.namespace" .Values.namespace }}
- name: ELVIA_APPLICATION_NAME
value: {{ required "Missing .Values.namespace" .Values.name }}
- name: OTEL_EXPORTER_OTLP_PROTOCOL
value: grpc
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://otel-collector.monitoring.svc.cluster.local:4317
{{- with .Values.env }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion iss-deployment/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.4.2
version: 0.4.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
10 changes: 9 additions & 1 deletion iss-deployment/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,16 @@ spec:
name: {{ required "Missing $envFromValue.name" $envFromValue.name }}
{{- end }}
{{- end }}
{{- with .Values.env }}
env:
- name: ELVIA_APPLICATION_NAMESPACE
value: {{ required "Missing .Values.namespace" .Values.namespace }}
- name: ELVIA_APPLICATION_NAME
value: {{ required "Missing .Values.namespace" .Values.name }}
- name: OTEL_EXPORTER_OTLP_PROTOCOL
value: grpc
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://otel-collector.monitoring.svc.cluster.local:4317
{{- with .Values.env }}
{{- toYaml . | nindent 8 }}
{{- end }}
image: {{ include "image" . }}
Expand Down

0 comments on commit 284762a

Please sign in to comment.