Grafana CR Config OCP Secret/ConfigMap Reference (SMTP) #2130
-
I am trying to externalize the Grafana CR configuration with my SMTP values so that I dont have to leave hardcoded values in my Grafana CR yaml. If we could use valueFrom: that would be great, or envFrom: Preferred Solution:
Grafana DataSource Example:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can extend/alter the final deployment that is created when defining a Grafana CR: ---
apiVersion: v1
kind: Secret
metadata:
name: secret-name
stringData:
GF_SMTP_PASSWORD: pass1234
---
apiVersion: grafana.integreatly.org/v1beta1
kind: Grafana
metadata:
name: grafana
spec:
config:
log:
level: warn
deployment:
spec:
template:
spec:
containers:
- name: grafana
env:
- name: GF_SMTP_PASSWORD
valueFrom:
secretKeyRef:
name: "secret-name"
key: GF_SMTP_PASSWORD
envFrom:
- secretRef:
name: secret-name
optional: false As this is already possible and Grafana allows full configuration of |
Beta Was this translation helpful? Give feedback.
You can extend/alter the final deployment that is created when defining a Grafana CR: