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.
More on The Application CRD & Sync Policies
Walk through the key fields of an Argo CD `Application`.BeginnerWhat values can `targetRevision` take?BeginnerWhat is the difference between `destination.server` and `destination.name`?BeginnerWhat does `syncPolicy.automated` do, and what are its sub-fields?BeginnerWhy is `prune` disabled by default?BeginnerExplain `selfHeal`. When might you not want it?Intermediate