Skip to content

Commit

Permalink
feat(helm): add envs
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Jan 3, 2024
1 parent 016a64d commit be0564b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helm/oteldb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: oteldb
description: A Helm chart for Kubernetes
description: A Helm chart for oteldb

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
4 changes: 4 additions & 0 deletions helm/oteldb/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ spec:
name: config
args:
- --config=/etc/otel/config.yml
env:
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 12 }}
{{- end }}
ports:
- containerPort: 19291
protocol: TCP
Expand Down
6 changes: 5 additions & 1 deletion helm/oteldb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@ resources: {}
# cpu: 100m
# memory: 128Mi

env:
- name: OTEL_LOG_LEVEL
value: "DEBUG"

config:
dsn: "tcp://localhost:9000?username=default&password=secret&database=default"
dsn:
ttl:
tempo:
bind: 0.0.0.0:3200
Expand Down

0 comments on commit be0564b

Please sign in to comment.