diff --git a/kubernetes/apps/observability/grafana/app/helmrelease.yaml b/kubernetes/apps/observability/grafana/app/helmrelease.yaml index 58aadab5..84f8ef87 100644 --- a/kubernetes/apps/observability/grafana/app/helmrelease.yaml +++ b/kubernetes/apps/observability/grafana/app/helmrelease.yaml @@ -30,3 +30,25 @@ spec: namespace: observability values: replicas: 2 + env: + GF_DATE_FORMATS_USE_BROWSER_LOCALE: true + GF_SERVER_ROOT_URL: https://grafana.hsn.dev + GF_DATABASE_NAME: ${DB_NAME} + GF_DATABASE_HOST: + valueFrom: + secretKeyRef: + name: "${APP}-pguser-${DB_USER}" + key: host + GF_DATABASE_USER: + valueFrom: + secretKeyRef: + name: "${APP}-pguser-${DB_USER}" + key: user + GF_DATABASE_PASSWORD: + valueFrom: + secretKeyRef: + name: "${APP}-pguser-${DB_USER}" + key: password + GF_DATABASE_SSL_MODE: disable + GF_DATABASE_TYPE: postgres + envFromSecret: grafana-secret \ No newline at end of file