From 67ab4385c85d10fc41f95a4cf185c3d7465e1d77 Mon Sep 17 00:00:00 2001 From: Parham Alvani Date: Wed, 23 Oct 2024 15:43:29 +0000 Subject: [PATCH] feat: provide using daemonset for soteria chart --- charts/soteria/templates/deployment.yaml | 8 ++++++++ charts/soteria/values.yaml | 3 +++ 2 files changed, 11 insertions(+) diff --git a/charts/soteria/templates/deployment.yaml b/charts/soteria/templates/deployment.yaml index f3ddfb9..230ace4 100644 --- a/charts/soteria/templates/deployment.yaml +++ b/charts/soteria/templates/deployment.yaml @@ -67,6 +67,14 @@ spec: env: - name: TZ value: {{ .Values.timezone }} + {{ if .Values.tracing.useDaemonset }} + - name: SOTERIA_TRACER__ENDPOINT + value: $(JAEGER_AGENT_HOST):4317 + - name: JAEGER_AGENT_HOST + valueFrom: + fieldRef: + fieldPath: status.hostIP + {{ end }} volumeMounts: - name: configuration mountPath: "/app/config.yml" diff --git a/charts/soteria/values.yaml b/charts/soteria/values.yaml index 60ef7ec..6aed6a4 100644 --- a/charts/soteria/values.yaml +++ b/charts/soteria/values.yaml @@ -1,6 +1,9 @@ --- replicaCount: 1 +tracing: + useDaemonset: false + labels: managedby: cloud-platform-team createdby: cloud-platform-team