Deploy an ApplicationSet with the cluster generator for multi-cluster GitOps in Argo CD

domain: argo-cd.readthedocs.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Ensure all target clusters are registered in Argo CD (via argocd cluster add or the Argo CD UI); the cluster generator reads from cluster Secrets in the argocd namespace.
  2. Create an ApplicationSet resource with apiVersion: argoproj.io/v1alpha1, kind: ApplicationSet, and a generators list containing a clusters entry.
  3. Use a selector under clusters (e.g., matchLabels: env: production) to restrict the generator to a subset of registered clusters rather than all clusters.
  4. In the template section, define a standard Application spec using generator parameters such as {{name}} for the cluster name and {{server}} for the cluster API URL to construct unique Application names and destination servers.
  5. Apply the ApplicationSet; the ApplicationSet controller creates one Argo CD Application per matching cluster automatically.
  6. Monitor per-cluster Application sync status with argocd app list or in the Argo CD UI; use the ApplicationSet syncPolicy to control whether Applications auto-sync or require manual promotion.

Known gotchas

Related routes

Configure an Argo CD ApplicationSet with the Matrix generator combining cluster and git generators to fan out applications across multiple clusters and directories
argo-cd.readthedocs.io · 5 steps · unrated
Generate Argo CD Applications dynamically with an ApplicationSet Git directory generator
argo-cd.readthedocs.io · 6 steps · unrated
Auto-discover repositories across a GitHub organization and generate Argo CD Applications with the ApplicationSet SCM Provider generator
argo-cd.readthedocs.io · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans