Interview Prep/CI/CD/Deployment Strategies and GitOps

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 →

  1. Check the Application: argocd app get payments shows OutOfSync then Synced with selfHeal: true.
  2. Make the change in Git so the desired state matches.
  3. For emergencies pause sync with argocd app set payments --sync-policy none or 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.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment Strategies and GitOps