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.
More on OutOfSync Loops & Diff Problems
`argocd app diff` shows only `replicas: 2` vs `replicas: 5` on a Deployment that has an HPA, and the app never stays Synced.BeginnerA MutatingWebhookConfiguration is always OutOfSync on `webhooks[0].clientConfig.caBundle`.IntermediateAfter installing Istio, every Deployment shows OutOfSync because of injected sidecar fields.IntermediateA ConfigMap is OutOfSync and the diff shows the same data in a different format (a number became a string).BeginnerA Deployment is OutOfSync on `resources.limits.cpu`: Git says `1000m`, live says `1`.IntermediateAn app is OutOfSync on a field that is not in Git at all, after an Argo CD upgrade.Advanced