infra/k8s/operators/kube-prometheus/grafana-deployment-patch.yaml

19 lines
517 B
YAML
Raw Normal View History

2024-07-27 19:11:56 +00:00
- op: add
path: /spec/template/spec/containers/0/envFrom
value:
- secretRef:
name: grafana-secrets
2024-07-27 23:54:45 +00:00
- op: add
path: /spec/template/spec/containers/0/env
2024-07-27 23:54:45 +00:00
value:
- name: DATABASE_USER
valueFrom:
secretKeyRef:
name: grafana.grafana-database.credentials.postgresql.acid.zalan.do
key: username
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: grafana.grafana-database.credentials.postgresql.acid.zalan.do
key: password