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

`ignoreDifferences` is configured for `/spec/replicas`, the diff is clean, but replicas still get reset on every sync.

IntermediateTroubleshootingOutOfSync Loops & Diff Problems
Answer

Likely causes → Missing RespectIgnoreDifferences=true; the sync still applies the whole manifest.

Diagnose → argocd app get web -o yaml | yq '.spec.syncPolicy.syncOptions'.

Fix →

syncPolicy:
  syncOptions:
    - RespectIgnoreDifferences=true

Prevent → Always pair field ignores with this option when another controller owns the field.

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

More on OutOfSync Loops & Diff Problems