apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: grafana namespace: argocd spec: project: default source: chart: grafana repoURL: https://grafana.github.io/helm-charts path: grafana targetRevision: 10.2.0 helm: releaseName: grafana values: | persistence: enabled: true type: pvc existingClaim: grafana-local-pvc storageClassName: null accessModes: - ReadWriteOnce securityContext: runAsUser: 1000 runAsGroup: 1000 fsGroup: 1000 runAsNonRoot: true initChownData: enabled: true securityContext: runAsNonRoot: false runAsUser: 0 seccompProfile: type: RuntimeDefault capabilities: add: - CHOWN drop: - ALL resources: limits: cpu: 500m memory: 1Gi requests: cpu: 200m memory: 256Mi # Load existing dashboards from ConfigMaps dashboardsConfigMaps: prometheus: "prometheus-kube-prometheus-alertmanager-overview" dashboardProviders: dashboardproviders.yaml: apiVersion: 1 providers: - name: 'prometheus' orgId: 1 folder: 'Prometheus' type: file disableDeletion: false editable: true options: path: /var/lib/grafana/dashboards/prometheus destination: server: https://kubernetes.default.svc namespace: default syncPolicy: automated: prune: true selfHeal: true