Generate Argo CD Applications dynamically with an ApplicationSet Git directory generator

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. Install the ApplicationSet controller (bundled with Argo CD v2.3+; verify with `kubectl get deploy -n argocd argocd-applicationset-controller`)
  2. Author an ApplicationSet manifest using the `git` generator with `directories` pointing to a path glob in your config repo (e.g., `apps/*`)
  3. Define the Application template inside the ApplicationSet spec; use `{{path.basename}}` to parameterize the Application name and target namespace per discovered directory
  4. Add the ApplicationSet to the cluster with `kubectl apply -f applicationset.yaml`; Argo CD creates one Application per matched directory
  5. Push a new directory to the config repo to automatically provision a new Application; remove the directory to trigger deletion (if configured)
  6. Use `argocd appset list` and `argocd appset get <name>` to inspect generator output and debug template rendering

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
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
Deploy an ApplicationSet with the cluster generator for multi-cluster GitOps in Argo CD
argo-cd.readthedocs.io · 6 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