After installing Istio, every Deployment shows OutOfSync because of injected sidecar fields.
IntermediateTroubleshootingOutOfSync Loops & Diff Problems
Answer
Likely causes → Usually it is not the Deployment but Pods or objects you declared that Istio mutates (for example annotations Istio adds to Services or webhook configs), or label tracking colliding with Istio labels. Pod injection happens on Pods, which Argo CD does not diff against Git.
Diagnose → argocd app diff to find the exact resource and field; check whether you declare objects Istio controls (for example istio-injection labels on namespaces managed by two places).
Fix → Ignore the injected fields with jqPathExpressions or managedFieldsManagers: [pilot-discovery], or enable ServerSideDiff=true so webhook mutations are part of the expected state.
Prevent → Server-side diff for meshes and policy engines that mutate on admission.
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`.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