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

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.

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

More on OutOfSync Loops & Diff Problems