Skip to content
Grafana icon
v1.0.0App: v13.3.2Pinned DigestS3 Backup Ready

Production Helm chart • Apache-2.0 • Zero-Root • Verified on Kubernetes v1.33-v1.36+

Grafana

Grafana observability dashboards with declarative provisioning and guarded high availability.

Features

  • pinned official multi-architecture Grafana OSS image;
  • durable single-replica SQLite default with retained storage;
  • fail-fast PostgreSQL/MySQL requirements for active-active replicas;
  • declarative datasources, dashboard providers, dashboards, and alerting;
  • administrator and database credentials through managed or existing Secrets;
  • native External Secrets Operator resources;
  • secure non-root, read-only filesystem defaults;
  • Ingress and canonical multi-route Gateway API exposure;
  • NetworkPolicy, PodDisruptionBudget, dual-stack Service, and ServiceMonitor;
  • application listener overrides wired to the real Grafana process.

Installation

Helm repository

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install grafana helmforge/grafana --namespace observability --create-namespace

OCI registry

helm install grafana oci://ghcr.io/helmforgedev/helm/grafana \
  --version 1.0.0 \
  --namespace observability \
  --create-namespace

Read the generated administrator password:

kubectl get secret -n observability grafana-grafana-admin \
  -o jsonpath='{.data.admin-password}' | base64 --decode

Use port forwarding for a private first login:

kubectl port-forward -n observability svc/grafana-grafana 3000:80

Open http://127.0.0.1:3000 and sign in as admin.

Quick start

Use an existing Secret in any durable environment:

admin:
  existingSecret: grafana-admin

persistence:
  enabled: true
  size: 20Gi

Create the Secret before installation:

kubectl create secret generic grafana-admin \
  --namespace observability \
  --from-literal=admin-user=platform-admin \
  --from-literal=admin-password='replace-with-a-secret-manager-value'

Deployment topologies

Single replica with SQLite

The default topology is one replica backed by a retained PVC. It is suitable for small teams and straightforward recovery. Recreate upgrades prevent two Grafana processes from sharing the same SQLite file.

replicaCount: 1
database:
  type: sqlite3
persistence:
  enabled: true
  accessModes: [ReadWriteOnce]
  size: 20Gi

Active-active with PostgreSQL

Grafana HA requires a shared PostgreSQL or MySQL database. The database is an external operational dependency and is not installed by this chart.

replicaCount: 3
database:
  type: postgres
  host: grafana-postgresql.database.svc.cluster.local
  port: 5432
  name: grafana
  user: grafana
  existingSecret: grafana-database
  passwordKey: password
  sslMode: verify-full
persistence:
  enabled: false
pdb:
  enabled: true

The chart rejects multiple replicas with SQLite and rejects shared ReadWriteOnce storage for multiple replicas.

Declarative provisioning

Provision a Prometheus datasource:

provisioning:
  datasources:
    apiVersion: 1
    datasources:
      - name: Prometheus
        uid: prometheus
        type: prometheus
        access: proxy
        url: http://prometheus.monitoring.svc.cluster.local:9090
        isDefault: true
        editable: false

Provision dashboards as native JSON objects:

provisioning:
  dashboards:
    platform-home:
      title: Platform home
      uid: platform-home
      schemaVersion: 41
      version: 1
      panels: []

See Provisioning for dashboard providers, alerting documents, and GitOps behavior.

Exposure

Ingress

grafana:
  rootUrl: https://grafana.example.com
ingress:
  enabled: true
  ingressClassName: nginx
  hosts:
    - host: grafana.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: grafana-tls
      hosts: [grafana.example.com]
networkPolicy:
  ingress:
    extraFrom:
      - namespaceSelector:
          matchLabels:
            kubernetes.io/metadata.name: ingress-nginx

Gateway API

gatewayAPI:
  enabled: true
  httpRoutes:
    - parentRefs:
        - name: public
          namespace: gateway-system
      hostnames:
        - grafana.example.com
networkPolicy:
  ingress:
    extraFrom:
      - namespaceSelector:
          matchLabels:
            kubernetes.io/metadata.name: gateway-system

See Production operations for TLS, database, and routing guidance.

External Secrets

The chart can render External Secrets Operator ExternalSecret resources. Set admin.existingSecret to the exact target Secret so Grafana and ESO have one credential owner.

admin:
  existingSecret: grafana-admin
externalSecrets:
  enabled: true
  items:
    - name: admin
      fullnameOverride: grafana-admin
      spec:
        secretStoreRef:
          name: production
          kind: ClusterSecretStore
        target:
          name: grafana-admin
          creationPolicy: Owner
        dataFrom:
          - extract:
              key: grafana/admin

See Security for Secret ownership and NetworkPolicy.

Plugins

Plugins are installed through Grafana's supported preinstall mechanism. Every plugin must include an exact version:

plugins:
  preinstall:
    - [email protected]

Plugin installation requires egress. Pin versions, test upgrades, and avoid unsigned plugins unless the security risk is explicitly accepted.

Monitoring

Grafana exposes Prometheus metrics on /metrics using the same HTTP Service.

metrics:
  serviceMonitor:
    enabled: true
    labels:
      release: monitoring
networkPolicy:
  ingress:
    extraFrom:
      - namespaceSelector:
          matchLabels:
            kubernetes.io/metadata.name: monitoring

The Prometheus Operator CRD must exist before installing a ServiceMonitor.

Configuration reference

Official Schema

Values & Configuration Reference

All schema parameters, types, defaults, and allowed values are extracted directly from the chart repository. Filter and search them in the interactive reference below or customize in Values Studio.

View Values Schema

The complete typed contract is in values.yaml and values.schema.json.

Backup and restore

Back up all state domains together:

  • SQLite or the external PostgreSQL/MySQL database;
  • chart values and referenced Secrets;
  • plugins under /var/lib/grafana/plugins when not reproducibly installed;
  • declarative provisioning source.

Stop Grafana before directly copying grafana.db, or use an application-consistent storage snapshot. For external databases, use native database backup tools and test restoration independently.

Upgrade

helm repo update
helm upgrade grafana helmforge/grafana \
  --namespace observability \
  --reuse-values

Before upgrading, review Grafana release notes, confirm plugin compatibility, back up metadata, render the release with the new chart, and test it in a non-production namespace.

Troubleshooting

Check rollout and logs:

kubectl rollout status -n observability deployment/grafana-grafana
kubectl logs -n observability deployment/grafana-grafana --tail=200
kubectl get events -n observability --sort-by=.lastTimestamp

Call health through the Service:

kubectl run grafana-health --rm -i --restart=Never -n observability \
  --image=curlimages/curl:8.17.0 -- \
  curl --fail --silent http://grafana-grafana/api/health

Common causes include an unwritable PVC, invalid external database TLS mode, incorrect root URL, blocked datasource/plugin egress, and malformed provisioning documents.

Security

The chart uses a non-root UID/GID, read-only root filesystem, dropped Linux capabilities, RuntimeDefault seccomp, no privilege escalation, and no mounted Kubernetes API token. Review Security before production.

Security scan

🟢 Security Scan: grafana

Framework Score
MITRE + NSA + SOC2 100.000000%

✅ Security posture acceptable.

Examples

Non-goals

This chart does not operate a database, fetch mutable dashboards from the internet, grant Grafana Kubernetes discovery RBAC, or claim that PVC retention is a backup.

Additional resources

System Architecture

DESIGN.md Synced

Verified architecture contract rendered dynamically from GitHub DESIGN.md

flowchart LR
  Client[Browser or API client] --> Edge[Ingress or HTTPRoute]
  Edge --> Service[Grafana Service]
  Service --> Pods[Grafana Deployment]
  Config[ConfigMaps] --> Pods
  Admin[Admin Secret] --> Pods
  ESO[External Secrets Operator] -. optional .-> Admin
  Pods --> Data{Metadata topology}
  Data -->|single replica| PVC[SQLite and plugin PVC]
  Data -->|multiple replicas| DB[External PostgreSQL or MySQL]
  Prometheus[Prometheus Operator] -. /metrics .-> Service
Official Contractvalues.schema.json

Grafana Values Schema Reference

Official schema parameters, default values, and types extracted directly from the chart repository.

113 parametersValues Studio

Global(1)

ParameterTypeDefaultDescription
globalobject-Chart configuration parameter

Name Override(1)

ParameterTypeDefaultDescription
nameOverridestring-Chart configuration parameter

Fullname Override(1)

ParameterTypeDefaultDescription
fullnameOverridestring-Chart configuration parameter

Common Labels(1)

ParameterTypeDefaultDescription
commonLabelsobject-Chart configuration parameter

Common Annotations(1)

ParameterTypeDefaultDescription
commonAnnotationsobject-Chart configuration parameter

Replica Count(1)

ParameterTypeDefaultDescription
replicaCountinteger-Chart configuration parameter

Image(3)

ParameterTypeDefaultDescription
image.repositorystring-Chart configuration parameter
image.tagstring-Chart configuration parameter
image.pullPolicystring-Chart configuration parameter
Allowed:AlwaysIfNotPresentNever

Image Pull Secrets(1)

ParameterTypeDefaultDescription
imagePullSecretsarray-Chart configuration parameter

Service Account(4)

ParameterTypeDefaultDescription
serviceAccount.createboolean-Chart configuration parameter
serviceAccount.namestring-Chart configuration parameter
serviceAccount.annotationsany-Chart configuration parameter
serviceAccount.automountServiceAccountTokenboolean-Chart configuration parameter

Service & Networking(5)

ParameterTypeDefaultDescription
service.typestring-Chart configuration parameter
Allowed:ClusterIPNodePortLoadBalancer
service.portinteger-Chart configuration parameter
service.annotationsany-Chart configuration parameter
service.ipFamilyPolicystring-Chart configuration parameter
Allowed:SingleStackPreferDualStackRequireDualStack
service.ipFamiliesarray-Chart configuration parameter

Grafana(6)

ParameterTypeDefaultDescription
grafana.portinteger-Chart configuration parameter
grafana.rootUrlstring-Chart configuration parameter
grafana.serveFromSubPathboolean-Chart configuration parameter
grafana.logLevelstring-Chart configuration parameter
Allowed:debuginfowarnerrorcritical
grafana.iniobject-Chart configuration parameter
grafana.extraEnvarray-Chart configuration parameter

Admin(5)

ParameterTypeDefaultDescription
admin.userstring-Chart configuration parameter
admin.passwordstring-Chart configuration parameter
admin.existingSecretstring-Chart configuration parameter
admin.userKeystring-Chart configuration parameter
admin.passwordKeystring-Chart configuration parameter

Database(11)

ParameterTypeDefaultDescription
database.typestring-Chart configuration parameter
Allowed:sqlite3postgresmysql
database.hoststring-Chart configuration parameter
database.portinteger-Chart configuration parameter
database.namestring-Chart configuration parameter
database.userstring-Chart configuration parameter
database.passwordstring-Chart configuration parameter
database.existingSecretstring-Chart configuration parameter
database.passwordKeystring-Chart configuration parameter
database.sslModestring-Chart configuration parameter
database.urlQueryParamsstring-Chart configuration parameter
database.networkPolicyPeersarray-Chart configuration parameter

Persistence(7)

ParameterTypeDefaultDescription
persistence.enabledboolean-Chart configuration parameter
persistence.existingClaimstring-Chart configuration parameter
persistence.storageClassstring-Chart configuration parameter
persistence.accessModesarray-Chart configuration parameter
persistence.sizestring-Chart configuration parameter
persistence.retainboolean-Chart configuration parameter
persistence.annotationsany-Chart configuration parameter

Provisioning(4)

ParameterTypeDefaultDescription
provisioning.datasourcesobject-Chart configuration parameter
provisioning.dashboardProvidersobject-Chart configuration parameter
provisioning.dashboardsobject-Chart configuration parameter
provisioning.alertingobject-Chart configuration parameter

Plugins(1)

ParameterTypeDefaultDescription
plugins.preinstallarray-Chart configuration parameter

External Secrets(3)

ParameterTypeDefaultDescription
externalSecrets.enabledboolean-Chart configuration parameter
externalSecrets.refreshIntervalstring-Chart configuration parameter
externalSecrets.itemsarray-Chart configuration parameter

Ingress(5)

ParameterTypeDefaultDescription
ingress.enabledboolean-Chart configuration parameter
ingress.ingressClassNamestring-Chart configuration parameter
ingress.annotationsany-Chart configuration parameter
ingress.hostsarray-Chart configuration parameter
ingress.tlsarray-Chart configuration parameter

Gateway API(2)

ParameterTypeDefaultDescription
gatewayAPI.enabledboolean-Chart configuration parameter
gatewayAPI.httpRoutesarray-Chart configuration parameter

Metrics & Observability(5)

ParameterTypeDefaultDescription
metrics.serviceMonitor.enabledboolean-Chart configuration parameter
metrics.serviceMonitor.labelsany-Chart configuration parameter
metrics.serviceMonitor.intervalstring-Chart configuration parameter
metrics.serviceMonitor.scrapeTimeoutstring-Chart configuration parameter
metrics.serviceMonitor.metricRelabelingsarray-Chart configuration parameter

Health Probes(15)

ParameterTypeDefaultDescription
probes.startup.enabledboolean-Chart configuration parameter
probes.startup.initialDelaySecondsinteger-Chart configuration parameter
probes.startup.periodSecondsinteger-Chart configuration parameter
probes.startup.timeoutSecondsinteger-Chart configuration parameter
probes.startup.failureThresholdinteger-Chart configuration parameter
probes.liveness.enabledboolean-Chart configuration parameter
probes.liveness.initialDelaySecondsinteger-Chart configuration parameter
probes.liveness.periodSecondsinteger-Chart configuration parameter
probes.liveness.timeoutSecondsinteger-Chart configuration parameter
probes.liveness.failureThresholdinteger-Chart configuration parameter
probes.readiness.enabledboolean-Chart configuration parameter
probes.readiness.initialDelaySecondsinteger-Chart configuration parameter
probes.readiness.periodSecondsinteger-Chart configuration parameter
probes.readiness.timeoutSecondsinteger-Chart configuration parameter
probes.readiness.failureThresholdinteger-Chart configuration parameter

Resources(4)

ParameterTypeDefaultDescription
resources.requests.cpustring-Chart configuration parameter
resources.requests.memorystring-Chart configuration parameter
resources.limits.cpustring-Chart configuration parameter
resources.limits.memorystring-Chart configuration parameter

Pod Security(1)

ParameterTypeDefaultDescription
podSecurityContextobject-Chart configuration parameter

Container Security(1)

ParameterTypeDefaultDescription
securityContextobject-Chart configuration parameter

Runtime Storage(2)

ParameterTypeDefaultDescription
runtimeStorage.tmpSizeLimitstring-Chart configuration parameter
runtimeStorage.logsSizeLimitstring-Chart configuration parameter

Pdb(4)

ParameterTypeDefaultDescription
pdb.enabledboolean-Chart configuration parameter
pdb.minAvailablestringinteger-Chart configuration parameter
pdb.maxUnavailablestringinteger-Chart configuration parameter
pdb.unhealthyPodEvictionPolicystring-Chart configuration parameter
Allowed:IfHealthyBudgetAlwaysAllow

Network Policy(6)

ParameterTypeDefaultDescription
networkPolicy.enabledboolean-Chart configuration parameter
networkPolicy.ingress.allowSameNamespaceboolean-Chart configuration parameter
networkPolicy.ingress.extraFromarray-Chart configuration parameter
networkPolicy.egress.enabledboolean-Chart configuration parameter
networkPolicy.egress.allowDNSboolean-Chart configuration parameter
networkPolicy.egress.extraEgressarray-Chart configuration parameter

Pod Labels(1)

ParameterTypeDefaultDescription
podLabelsany-Chart configuration parameter

Pod Annotations(1)

ParameterTypeDefaultDescription
podAnnotationsany-Chart configuration parameter

Node Selector(1)

ParameterTypeDefaultDescription
nodeSelectorany-Chart configuration parameter

Tolerations(1)

ParameterTypeDefaultDescription
tolerationsarray-Chart configuration parameter

Affinity(1)

ParameterTypeDefaultDescription
affinityobject-Chart configuration parameter

Topology Spread Constraints(1)

ParameterTypeDefaultDescription
topologySpreadConstraintsarray-Chart configuration parameter

Priority Class Name(1)

ParameterTypeDefaultDescription
priorityClassNamestring-Chart configuration parameter

Termination Grace Period Seconds(1)

ParameterTypeDefaultDescription
terminationGracePeriodSecondsinteger-Chart configuration parameter

Extra Volumes(1)

ParameterTypeDefaultDescription
extraVolumesarray-Chart configuration parameter

Extra Volume Mounts(1)

ParameterTypeDefaultDescription
extraVolumeMountsarray-Chart configuration parameter

Extra Init Containers(1)

ParameterTypeDefaultDescription
extraInitContainersarray-Chart configuration parameter

Extra Manifests(1)

ParameterTypeDefaultDescription
extraManifestsarray-Chart configuration parameter