A self-heal loop makes the application controller CPU spike and other apps lag.
AdvancedTroubleshootingOutOfSync Loops & Diff Problems
Answer
Likely causes → A tight fight between self-heal and another controller; each revert triggers a watch event and another sync.
Diagnose →
argocd app list -o wide | grep OutOfSync
kubectl -n argocd logs sts/argocd-application-controller | grep -c 'Initiated automated sync'
Check argocd_app_sync_total rate per app.
Fix → Temporarily disable self-heal on the offending app, fix the field ownership, re-enable.
Prevent → Alert on sync rate per app; newer versions back off self-heal retries, keep them on defaults rather than shortening them.
More on OutOfSync Loops & Diff Problems
An app flips between `Synced` and `OutOfSync` every few seconds and the sync history grows constantly.Intermediate`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`.Intermediate