Kustomize Grafana Deployment

Grafana is deployed via plain Kustomize manifests in argocd/manifests/grafana/, replacing the previous Helm chart.

Manifest Structure

FilePurpose
kustomization.yamlResource list
deployment.yamlGrafana container + k8s-sidecar for dashboards
service.yamlClusterIP on port 80 → 3000
pvc.yaml1Gi SQLite storage
configmap.yamlgrafana.ini and datasource provisioning
serviceaccount.yamlService account
rbac.yamlClusterRole/RoleBinding for sidecar ConfigMap access

Key Details

  • PVC name must remain grafana — changing it would create a new volume and lose the SQLite DB
  • Sidecar watches ConfigMaps with label grafana_dashboard=1 and reloads dashboards via the Grafana API
  • Secrets come from ExternalSecrets (grafana-admin, grafana-authentik-oauth, grafana-teslamate-datasource) managed by the grafana-config ArgoCD app