Advertisement
Beginner ArgoCD, Sync Waves & Hooks

How do you annotate a resource with a sync wave?

Short 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.

Save ArgoCD mock interview
Advertisement
AModel 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.
Likely follow-ups
  • What is the default wave? | Do negative waves run first?
Related topics