Sequence Argo CD resource deployment with sync waves and resource hooks

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. Annotate each Kubernetes manifest with `argocd.argoproj.io/sync-wave: "<integer>"` — lower integers deploy first; default wave is 0
  2. For pre-sync setup (e.g., database migrations), create a Job with the hook annotation `argocd.argoproj.io/hook: PreSync` and the desired sync-wave
  3. Annotate hook resources with `argocd.argoproj.io/hook-delete-policy: HookSucceeded` so completed Jobs are cleaned up automatically
  4. Place infrastructure resources (CRDs, namespaces) in negative waves (e.g., -5) and application Deployments in positive waves (e.g., 10)
  5. Trigger a sync and observe wave progression in the Argo CD UI or via `argocd app sync <name> --watch`
  6. If a wave fails, the sync halts and downstream waves do not execute — inspect the failed resource and fix before re-syncing

Known gotchas

Related routes

Implement Argo CD resource hooks (PreSync, Sync, PostSync, SyncFail) with retry policies to orchestrate database migrations before and health checks after an application deployment
Argo CD · 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
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