apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: prometheus-appset namespace: argocd spec: generators: - list: elements: - env: prod valuesFile: values-prod.yaml nameSuffix: prometheus-prod host: prometheus.dvirlabs.com - env: int valuesFile: values-int.yaml nameSuffix: prometheus-int host: prometheus-int.dvirlabs.com template: metadata: name: '{{nameSuffix}}' spec: project: observability source: repoURL: https://git.dvirlabs.com/dvirlabs/observability-stack.git targetRevision: master path: charts/kube-prometheus-stack helm: valueFiles: - my-values/values-{{env}}.yaml destination: server: https://kubernetes.default.svc namespace: monitoring syncPolicy: automated: prune: true selfHeal: true syncOptions: - CreateNamespace=true