You want a `Sync` to happen automatically, but never delete anything without a human looking first. How do you configure it?
BeginnerScenarioSync Behaviour, Waves & Hooks
Answer
Situation read → Auto-apply, manual delete.
What I'd do →
syncPolicy.automatedwithprune: false.- Resources removed from Git show as "requires pruning"; review them in the UI and run
argocd app sync web --prunemanually. - For extra safety on specific objects,
Prune=confirm.
Why → Creation and updates are low risk; deletion is where incidents happen.
Interview tip → This is a sensible default for prod in teams new to GitOps.
More on Sync Behaviour, Waves & Hooks
A new release needs a database migration that must finish before the new pods start. How do you implement it in Argo CD?IntermediateYour app needs cert-manager's CRDs, an Issuer and then a Certificate, all in one Application. The first sync fails. What do you do?IntermediateAfter enabling `prune: true`, someone renames a folder and the next sync would delete a production StatefulSet and its PVCs. How do you prevent this class of incident?AdvancedYou want a smoke test to run after every deploy and mark the sync failed if it fails. How?BeginnerAn HPA scales your Deployment, but Argo CD with self-heal keeps resetting replicas to 2. What do you do?BeginnerYou must change a Deployment's label selector, which is immutable. How do you roll it out with Argo CD?Advanced