fix(prometheus): fix Grafana auth and set pod security standards

This commit is contained in:
Masaki Yatsu
2025-11-23 15:02:04 +09:00
parent fa8e2bd8c7
commit 44ba48ee2f
4 changed files with 204 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: grafana-oidc-credentials
namespace: {{ .Env.PROMETHEUS_NAMESPACE }}
spec:
refreshInterval: 1h
secretStoreRef:
name: vault-secret-store
kind: ClusterSecretStore
target:
name: grafana-oidc-credentials
creationPolicy: Owner
template:
data:
client-secret: "{{ `{{ .client_secret }}` }}"
data:
- secretKey: client_secret
remoteRef:
key: grafana/oidc
property: client_secret