Interview Prep/GitOps & Argo CD/ApplicationSets, App-of-Apps & Multi-Cluster

Explain the `applicationsSync` policy values.

AdvancedConceptApplicationSets, App-of-Apps & Multi-Cluster
Answer

spec.syncPolicy.applicationsSync controls what the ApplicationSet controller may do to generated Applications:

  • sync (default): create, update and delete.
  • create-update: create and update, never delete.
  • create-delete: create and delete, never update existing ones.
  • create-only: create, never update or delete.

The controller can also be restricted globally with --policy. create-only is useful when teams are allowed to tweak generated apps afterwards.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on ApplicationSets, App-of-Apps & Multi-Cluster