Files
home-argocd/manifests/grafana.yaml
T
2025-12-01 13:24:46 +11:00

74 lines
1.7 KiB
YAML

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: 6.32.3
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