# Apply with `kubectl apply -k k8s/` — not `-f k8s/`, which skips the Grafana ConfigMaps below. # The Secrets are not included: create them from secrets/secrets.example.yaml first. apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - namespace.yaml - influxdb.yaml - server.yaml - grafana.yaml - ingress.yaml generatorOptions: labels: app.kubernetes.io/part-of: mg4 configMapGenerator: - name: grafana-datasources namespace: mg4 files: - mg4.yaml=grafana/datasources.yaml - name: grafana-dashboard-provider namespace: mg4 files: - mg4.yaml=grafana/dashboards.yaml - name: grafana-dashboards namespace: mg4 files: - grafana/dashboards/live.json - grafana/dashboards/consumption.json - grafana/dashboards/charging.json