Skip to content

Commit 4c4e5c8

Browse files
author
Ruslan Aliyev
committed
fix: pass prometheus and grafana config as env vars in helm chart
1 parent 9d18d83 commit 4c4e5c8

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

helm/kagent-tools/templates/deployment.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ spec:
4848
{{- end }}
4949
{{- end }}
5050

51-
5251
securityContext:
5352
{{- toYaml .Values.podSecurityContext | nindent 8 }}
5453
serviceAccountName: {{ include "kagent-tools.serviceAccountName" . }}
@@ -84,7 +83,7 @@ spec:
8483
secretKeyRef:
8584
name: {{ include "kagent-tools.fullname" . }}-openai
8685
key: OPENAI_API_KEY
87-
optional: true # if the secret is not found, the tool will not be available
86+
optional: true
8887
- name: OTEL_TRACING_ENABLED
8988
value: {{ .Values.otel.tracing.enabled | quote }}
9089
- name: OTEL_EXPORTER_OTLP_ENDPOINT
@@ -95,6 +94,16 @@ spec:
9594
value: {{ .Values.otel.tracing.exporter.otlp.insecure | quote }}
9695
- name: TOKEN_PASSTHROUGH
9796
value: {{ (index .Values.tools "k8s" | default dict).tokenPassthrough | default false | quote }}
97+
- name: PROMETHEUS_URL
98+
value: {{ .Values.tools.prometheus.url | quote }}
99+
- name: PROMETHEUS_USERNAME
100+
value: {{ .Values.tools.prometheus.username | quote }}
101+
- name: PROMETHEUS_PASSWORD
102+
value: {{ .Values.tools.prometheus.password | quote }}
103+
- name: GRAFANA_URL
104+
value: {{ .Values.tools.grafana.url | quote }}
105+
- name: GRAFANA_API_KEY
106+
value: {{ .Values.tools.grafana.apiKey | quote }}
98107
{{- with .Values.tools.env }}
99108
{{- toYaml . | nindent 12 }}
100109
{{- end }}
@@ -116,4 +125,4 @@ spec:
116125
mountPath: /tmp
117126
volumes:
118127
- name: tmp
119-
emptyDir: {}
128+
emptyDir: {}

0 commit comments

Comments
 (0)