Back to results for “Sync Waves & Hooks”
ArgoCD › Sync Waves & Hooks

How do you annotate a resource with a sync wave?

Beginner

Answer

Add the annotation argocd.argoproj.io/sync-wave with an integer string value on the resource metadata. Lower numbers apply first. Resources without the annotation default to wave 0.
metadata:
  annotations:
    argocd.argoproj.io/sync-wave: "2"
Real-world example The frontend is annotated wave 2 so it deploys after the backend in wave 1.

Common follow-ups: What is the default wave? | Do negative waves run first?