diff --git a/grafana.yaml b/grafana.yaml index a8e2860..d044839 100644 --- a/grafana.yaml +++ b/grafana.yaml @@ -32,14 +32,6 @@ data: editable: true options: path: /var/lib/grafana/dashboards - - name: 'Auto-Downloaded' - orgId: 1 - folder: 'Kubernetes' - type: file - disableDeletion: false - editable: true - options: - path: /etc/grafana/dashboards --- apiVersion: v1 kind: ConfigMap @@ -311,22 +303,6 @@ spec: spec: securityContext: fsGroup: 472 - initContainers: - - name: download-dashboards - image: curlimages/curl:latest - command: ["sh", "-c"] - args: - - | - set -e - mkdir -p /tmp/dashboards - # List of dashboard IDs to download - for id in 15757 15759 15760; do - echo "Downloading dashboard $id..." - curl -sL "https://grafana.com/api/dashboards/${id}/revisions/latest/download" -o "/tmp/dashboards/${id}.json" - done - volumeMounts: - - name: auto-dashboards - mountPath: /tmp/dashboards containers: - name: grafana image: grafana/grafana:latest @@ -395,19 +371,16 @@ spec: - name: grafana-storage mountPath: /var/lib/grafana - name: grafana-provisioning - mountPath: /etc/grafana/provisioning/datasources + mountPath: /etc/grafana/provisioning/datasources/datasources.yaml subPath: datasources.yaml readOnly: true - name: grafana-provisioning - mountPath: /etc/grafana/provisioning/dashboards + mountPath: /etc/grafana/provisioning/dashboards/dashboards.yaml subPath: dashboards.yaml readOnly: true - name: grafana-dashboards mountPath: /var/lib/grafana/dashboards readOnly: true - - name: auto-dashboards - mountPath: /etc/grafana/dashboards - readOnly: true readinessProbe: httpGet: path: /api/health @@ -427,8 +400,6 @@ spec: - name: grafana-dashboards configMap: name: grafana-dashboards - - name: auto-dashboards - emptyDir: {} volumeClaimTemplates: - metadata: name: grafana-storage