Interview Prep/Real-World Interview/Kubernetes, GitOps & deployment strategy

How did Argo CD handle drift or manual changes in the cluster?

IntermediateBehavioralKubernetes, GitOps & deployment strategy
Answer

Good answer looks like → "Automated sync with selfHeal: true and prune: true in production, so manual kubectl edits were reverted within minutes and removed resources were deleted. HPA-managed replicas were excluded with ignoreDifferences so Argo didn't fight the autoscaler."

syncPolicy:
  automated:
    prune: true
    selfHeal: true
ignoreDifferences:
  - group: apps
    kind: Deployment
    jsonPointers:
      - /spec/replicas

Follow-ups to expect → Is prune dangerous? How do you do an emergency manual change?

Red flags → Auto-sync off everywhere so Git and the cluster drift apart.

All Real-World Interview questions Roadmap: Interview readiness

More on Kubernetes, GitOps & deployment strategy