Pull from crunchy secret.

This commit is contained in:
Joseph Hanson 2024-04-01 10:43:21 -05:00
parent 640333dec7
commit 3b3f558029
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 13 additions and 2 deletions

View file

@ -20,8 +20,8 @@ spec:
GF_SERVER_ROOT_URL: https://grafana.hsn.dev
GF_DATABASE_NAME: ${DB_NAME}
GF_DATABASE_HOST: "grafana-primary.observability.svc:5432"
GF_DATABASE_USER: "{{ .grafana_postgres_user }}"
GF_DATABASE_PASSWORD: "{{ .grafana_postgres_password }}"
# GF_DATABASE_USER: "{{ .grafana_postgres_user }}"
# GF_DATABASE_PASSWORD: "{{ .grafana_postgres_password }}"
GF_DATABASE_SSL_MODE: "require"
GF_DATABASE_TYPE: postgres
GF_ANALYTICS_CHECK_FOR_UPDATES: "false"

View file

@ -31,6 +31,17 @@ spec:
values:
replicas: 2
envFromSecret: grafana-secret
env:
- name: GF_DATABASE_USER
valueFrom:
secretKeyRef:
name: grafana-pguser-grafana
key: user
- name: GF_DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: grafana-pguser-grafana
key: password
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1