apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: observability resources: - pvc.yaml - deployment.yaml - service.yaml # Dashboards live in ./dashboards and are referenced by the root kustomization: # `k8s/grafana` is the runtime alone, `k8s/grafana/dashboards` the content alone. # Both are deployable independently. configMapGenerator: # Name-suffix hash KEPT here: datasource and provider provisioning is only # read at startup, so the hash deliberately forces a pod restart whenever # these files change. - name: grafana-datasources files: - datasources.yaml=provisioning/datasources.yaml - name: grafana-dashboard-providers files: - dashboard-providers.yaml=provisioning/dashboard-providers.yaml generatorOptions: labels: app.kubernetes.io/name: grafana app.kubernetes.io/part-of: observability