Monitoring/argo/apps/kube-prometheus-stack.yaml
James Mellors 4c88bfb227 rename
2025-05-07 22:05:16 +01:00

40 lines
1.2 KiB
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: kube-prometheus-stack
namespace: argocd
spec:
project: default
sources:
# Source 1: Your Git repo for values
- repoURL: https://git.james-mellors.com/mello/Monitoring.git
targetRevision: main
path: grafana
- repoURL: https://git.james-mellors.com/mello/Monitoring.git
targetRevision: main
# Use 'ref' to store values content to be referenced later
ref: valuesRef # Arbitrary reference name
# Source 2: The Helm chart repository
- repoURL: https://prometheus-community.github.io/helm-charts
chart: kube-prometheus-stack
targetRevision: 71.0.0 # The chart version
helm:
# Reference the values stored in 'valuesRef' from the first source
valueFiles:
- $valuesRef/values/overrides.yaml # Path within the Git repo
# repoURL: https://prometheus-community.github.io/helm-charts
# targetRevision: 71.0.0
# chart: kube-prometheus-stack
# path: values/overrides.yaml
destination:
server: https://kubernetes.default.svc
namespace: monitoring
syncPolicy:
syncOptions:
- ServerSideApply=true
automated:
prune: true
selfHeal: true