Interview Prep/Kubernetes/Helm, operators and GitOps

Argo CD shows an app as `OutOfSync` constantly though nothing changed. Why?

IntermediateScenarioHelm, operators and GitOps
Answer

Situation read → A Deployment is always out of sync with Git.

What I'd do →

  1. argocd app diff web to see the differing fields
  2. Typical causes: HPA changing replicas, mutating webhooks adding fields, controllers adding defaults
  3. Add ignoreDifferences with jsonPointers
  4. Remove replicas from Git when using HPA
  5. Use ServerSideApply=true sync option

Why → Fields written by other controllers show as drift unless ignored.

Interview tip → Mention managedFieldsManagers.

All Kubernetes questions Roadmap: Platform engineering

More on Helm, operators and GitOps