khuedoan-homelab/platform/grafana/templates/secret.yaml
Khue Doan b1a716dae9 refactor!: move Grafana to platform
Grafana depends on secret created by ExternalSecret, with the values
pulled from Vault, causing circular dependency problem: system requires
platform components but platform requires system components.
2023-05-19 01:36:47 +07:00

17 lines
364 B
YAML

apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: grafana-secrets
namespace: {{ .Release.Namespace }}
spec:
secretStoreRef:
kind: ClusterSecretStore
name: vault
target:
name: grafana-secrets
data:
- secretKey: GRAFANA_SSO_CLIENT_SECRET
remoteRef:
key: /dex/grafana
property: client_secret