Restrict Argo CD automated sync to maintenance windows using sync windows

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

Steps

  1. In the AppProject manifest, add spec.syncWindows entries with kind: allow or kind: deny, a schedule in standard cron syntax, and a duration (e.g. "1h").
  2. Scope each window to the maintenance target using applications, namespaces, and/or clusters selectors under the window (wildcards supported); enable the 'Use AND operator' option if the selectors should be ANDed instead of ORed.
  3. Set manualSync: true on a window to let operators trigger syncs by hand while automated syncs stay blocked, or leave it false/omitted to block manual syncs too.
  4. Apply the AppProject, then confirm the effective state with `argocd proj windows list <PROJECT>` or `argocd app get <APP>` (shows SyncWindow status and Assigned Windows).
  5. Alternatively manage windows imperatively: `argocd proj windows add <PROJECT> --kind allow --schedule "<CRON>" --duration 1h --applications "<APP_PATTERN>"`, and toggle manual overrides with `argocd proj windows enable-manual-sync <PROJECT> <ID>`.

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
Sequence Argo CD resource deployment with sync waves and resource hooks
argo-cd.readthedocs.io · 6 steps · unrated
Sync an Argo CD application to a target revision via REST API
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