Back to results for “Applications”
ArgoCD › Sync & Health

What are sync options and give common examples?

Intermediate

Answer

Sync options modify apply behavior, set via the Application or resource annotations. Common ones: Prune=false (don't delete), Validate=false (skip schema validation), CreateNamespace=true (auto-create target namespace), ApplyOutOfSyncOnly=true (only apply changed resources), ServerSideApply=true, and Replace=true (use replace instead of apply).
syncPolicy:
  syncOptions:
    - CreateNamespace=true
    - ApplyOutOfSyncOnly=true
    - ServerSideApply=true
Real-world example CreateNamespace=true lets an app provision its own namespace on first sync without a separate manifest.

Common follow-ups: What does ServerSideApply solve? | When use Replace=true?