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

How do you sync only a subset of resources?

IntermediateConceptThe Application CRD & Sync Policies
Answer

Selective sync, from the UI or CLI:

argocd app sync web --resource apps:Deployment:web
argocd app sync web --resource :ConfigMap:web-config --resource :Service:web

The format is GROUP:KIND:NAME (empty group for core kinds), optionally with namespace GROUP:KIND:NAMESPACE/NAME. Selective syncs do not run hooks and are not recorded as full syncs, so use them for surgical fixes, not routine deploys.

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

More on The Application CRD & Sync Policies