fix(prometheus): fix Grafana auth and set pod security standards
This commit is contained in:
21
prometheus/grafana-oidc-external-secret.gomplate.yaml
Normal file
21
prometheus/grafana-oidc-external-secret.gomplate.yaml
Normal 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
|
||||
Reference in New Issue
Block a user