Skip to content
Discussion options

You must be logged in to vote

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: s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mhasz-wahbe
Comment options

Answer selected by mhasz-wahbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
needs triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
2 participants
Converted from issue

This discussion was converted from issue #2128 on August 04, 2025 19:57.