A Service of type `LoadBalancer` shows OutOfSync on `spec.ports[0].nodePort` and `healthCheckNodePort`.
IntermediateTroubleshootingOutOfSync Loops & Diff Problems
Answer
Likely causes → You declared nodePort values that differ from what was allocated, or a previous manifest declared them (last-applied still lists them).
Diagnose → Compare argocd app diff with kubectl get svc -o yaml.
Fix → Remove nodePort from Git unless you need fixed ports; resync to refresh last-applied.
Prevent → Let Kubernetes allocate node ports.
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