Interview Prep/GitOps & Argo CD/OutOfSync Loops & Diff Problems

An app flips between `Synced` and `OutOfSync` every few seconds and the sync history grows constantly.

IntermediateTroubleshootingOutOfSync Loops & Diff Problems
Answer

Likely causes → Self-heal fighting another writer: an HPA on replicas, an operator rewriting a field, a mutating webhook, or a second Application managing the same object.

Diagnose →

argocd app diff web
argocd app history web | tail -20
kubectl get deploy web -n web -o yaml --show-managed-fields | grep -B2 -A8 manager

Fix → Remove the contested field from Git, or add ignoreDifferences for it with RespectIgnoreDifferences=true. If two apps own the resource, give it one owner.

Prevent → One owner per field; enable FailOnSharedResource=true; review managed fields when adopting operators.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on OutOfSync Loops & Diff Problems