infra/k8s/operators/kube-prometheus/grafana-deployment-patch.yaml

20 lines
511 B
YAML
Raw Normal View History

2024-07-27 19:11:56 +00:00
- op: add
path: /spec/template/spec/containers/0/envFrom
value:
- secretRef:
name: grafana-secrets
2024-07-27 23:54:45 +00:00
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
mountPath: /grafana-dashboard-definitions/1
name: grafana-dashboards-custom
- op: add
path: /spec/template/spec/volumes/-
value:
name: grafana-dashboards-custom
configMap:
name: grafana-dashboards-custom
# - op: replace
# path: /spec/template/spec/automountServiceAccountToken
# value: true