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

18 lines
517 B
YAML

- op: add
path: /spec/template/spec/containers/0/envFrom
value:
- secretRef:
name: grafana-secrets
- op: add
path: /spec/template/spec/containers/0/env
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