Someone `kubectl edit`s a production deployment; an hour later it reverts. Explain.
BeginnerScenarioDeployment Strategies and GitOps
Answer
Situation read → Argo CD self-heal reverted drift.
What I'd do →
- Check the Application:
argocd app get paymentsshowsOutOfSyncthenSyncedwithselfHeal: true. - Make the change in Git so the desired state matches.
- For emergencies pause sync with
argocd app set payments --sync-policy noneor annotate, and then reconcile through Git.
Why → In GitOps Git is the source of truth and the controller continuously reconciles.
Interview tip → Self-heal plus prune is powerful; know the risk of auto-prune.