apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: prometheus namespace: argo-cd spec: project: default source: repoURL: ghcr.io/prometheus-community/charts chart: kube-prometheus-stack targetRevision: 86.3.2 helm: valuesObject: grafana: enabled: true adminPassword: password envFromSecrets: - name: grafana-oidc-secret grafana.ini: server: root_url: https://grafana.solidish.dev auth.generic_oauth: enabled: true name: Authentik client_id: $__env{GRAFANA_OIDC_CLIENT_ID} client_secret: $__env{GRAFANA_OIDC_CLIENT_SECRET} scopes: openid profile email auth_url: https://auth.solidish.dev/application/o/authorize/ token_url: https://auth.solidish.dev/application/o/token/ api_url: https://auth.solidish.dev/application/o/userinfo/ role_attribute_path: contains(groups, 'admin') && 'Admin' || 'Viewer' allow_assign_grafana_admin: true alertmanager: enabled: false prometheus: prometheusSpec: retention: 30d storageSpec: volumeClaimTemplate: spec: accessModes: ["ReadWriteOnce"] resources: requests: storage: 10Gi resources: requests: cpu: 100m memory: 512Mi limits: memory: 2Gi destination: server: https://kubernetes.default.svc namespace: monitoring syncPolicy: automated: prune: true selfHeal: true syncOptions: - CreateNamespace=true - ServerSideApply=true