ApplicationSets — a mechanism for automatically creating Applications from a template.
List Generator:
1apiVersion: argoproj.io/v1alpha12kind: ApplicationSet3metadata:4 name: myapp5 namespace: argocd6spec:7 generators:8 - list:9 elements:10 - env: dev11 cluster: https://dev-cluster12 revision: develop13 - env: staging14 cluster: https://staging-cluster15 revision: main16 - env: production17 cluster: https://prod-cluster18 revision: main19 template:20 metadata:21 name: "myapp-{{env}}"22 spec:23 source:24 repoURL: https://github.com/org/k8s-manifests25 targetRevision: "{{revision}}"26 path: "overlays/{{env}}"27 destination:28 server: "{{cluster}}"29 namespace: production30 syncPolicy:31 automated:32 prune: true33 selfHeal: true
Git Generator: Each folder in apps/ creates a separate Application.
Cluster Generator: Automatically deploys to all registered clusters.
Matrix Generator: Combination of two generators (service × cluster).