diff --git a/applicationsets/prometheus.yaml b/applicationsets/prometheus.yaml new file mode 100644 index 0000000..15967f2 --- /dev/null +++ b/applicationsets/prometheus.yaml @@ -0,0 +1,40 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: prometheus-applicationset + namespace: argocd +spec: + generators: + - list: + elements: + - cluster: "in-cluster" + template: + metadata: + name: prometheus + spec: + project: default + source: + repoURL: https://prometheus-community.github.io/helm-charts + targetRevision: 65.8.0 + chart: kube-prometheus-stack + helm: + releaseName: prometheus + values: | # Optional custom values.yaml content + persistence: + enabled: true + size: 8Gi + resources: + requests: + memory: "512Mi" + cpu: "700m" + limits: + memory: "1Gi" + cpu: "1" + destination: + server: https://kubernetes.default.svc + namespace: default # Target namespace + syncPolicy: + automated: + prune: true # Remove obsolete resources + selfHeal: true # Automatically fix drift +