From be0564bb6a4f9cd7fb93e73f98338e19946a0427 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Wed, 3 Jan 2024 15:54:11 +0300 Subject: [PATCH] feat(helm): add envs --- helm/oteldb/Chart.yaml | 2 +- helm/oteldb/templates/deployment.yaml | 4 ++++ helm/oteldb/values.yaml | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/helm/oteldb/Chart.yaml b/helm/oteldb/Chart.yaml index ab217760..e35093b8 100644 --- a/helm/oteldb/Chart.yaml +++ b/helm/oteldb/Chart.yaml @@ -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. # diff --git a/helm/oteldb/templates/deployment.yaml b/helm/oteldb/templates/deployment.yaml index 365654d7..e5eb155a 100644 --- a/helm/oteldb/templates/deployment.yaml +++ b/helm/oteldb/templates/deployment.yaml @@ -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 diff --git a/helm/oteldb/values.yaml b/helm/oteldb/values.yaml index 3bb69269..abe7d291 100644 --- a/helm/oteldb/values.yaml +++ b/helm/oteldb/values.yaml @@ -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