Files
homelab-v/k8s/infra/monitoring/kube-prometheus-stack/patches/grafana-sc-dashboard-admin-user-credentials.yaml
T
Vegard Hagen 3634e29a6b fix(grafana): add admin credentials
admin credentials are needed by the sidecards in order to update datasources and dashboards

Signed-off-by: Vegard Hagen <[email protected]>
2025-07-31 21:02:22 +02:00

24 lines
615 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: kube-prometheus-stack-grafana
namespace: monitoring
spec:
template:
spec:
containers:
- name: grafana-sc-dashboard
env:
- name: REQ_USERNAME
valueFrom:
secretKeyRef:
key: username
name: grafana-admin-credentials
$patch: replace
- name: REQ_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: grafana-admin-credentials
$patch: replace