Interview Prep/GitOps & Argo CD/The Application CRD & Sync Policies

When would you use `ServerSideApply=true`?

IntermediateConceptThe Application CRD & Sync Policies
Answer
  • Large objects (big CRDs, dashboards in ConfigMaps) that fail client-side apply with metadata.annotations: Too long: must have at most 262144 bytes, because client-side apply stores the full object in last-applied-configuration.
  • When several managers own different fields of one object and you want proper field ownership instead of overwriting.
  • Patching resources partially (with ServerSideApply you can apply just the fields you declare to an object created elsewhere).

It can be set per app (syncOptions) or per resource (annotation).

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

More on The Application CRD & Sync Policies