Interview Prep/GitOps & Argo CD/Manifest Generation & ComparisonError

`rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 10.96.12.4:8081: connect: connection refused"`

IntermediateTroubleshootingManifest Generation & ComparisonError
Answer

Likely causes → The controller or server cannot reach argocd-repo-server on 8081: repo-server pods crashed (OOM), are restarting, or a NetworkPolicy blocks it.

Diagnose →

kubectl -n argocd get pods -l app.kubernetes.io/name=argocd-repo-server
kubectl -n argocd describe pod <repo-server-pod> | grep -A5 'Last State'
kubectl -n argocd get networkpolicy

Fix → Fix the crash (memory limits, parallelism), restore network policy rules allowing controller and server to repo-server.

Prevent → Multiple repo-server replicas with a PDB and memory alerts.

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

More on Manifest Generation & ComparisonError