Change to applicationset for scraping

This commit is contained in:
dvirlabs 2025-06-25 21:09:44 +03:00
parent cb30b27b3e
commit 86bba8d3ec

View File

@ -1,13 +1,21 @@
apiVersion: argoproj.io/v1alpha1 apiVersion: argoproj.io/v1alpha1
kind: Application kind: ApplicationSet
metadata: metadata:
name: prometheus-scrape-secret name: prometheus-scrape-secret
namespace: argocd namespace: argocd
spec: spec:
generators:
- list:
elements:
- name: prometheus-scrape-secret
template:
metadata:
name: '{{name}}'
spec:
project: observability project: observability
source: source:
repoURL: https://git.dvirlabs.com/dvirlabs/observability-stack.git repoURL: https://git.dvirlabs.com/dvirlabs/observability-stack.git
targetRevision: master targetRevision: HEAD
path: manifests/prometheus-scrape-secret path: manifests/prometheus-scrape-secret
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
@ -16,3 +24,5 @@ spec:
automated: automated:
prune: true prune: true
selfHeal: true selfHeal: true
syncOptions:
- CreateNamespace=true