Interview Prep/GitOps & Argo CD/Repos, Clusters, Projects & Permissions

Repo connection works from a laptop, but in the cluster: `dial tcp 140.82.112.4:443: i/o timeout`.

IntermediateTroubleshootingRepos, Clusters, Projects & Permissions
Answer

Likely causes → Egress is blocked: a NetworkPolicy on the argocd namespace, a firewall that only allows traffic via a corporate proxy, or a private cluster without NAT.

Diagnose →

kubectl -n argocd exec deploy/argocd-repo-server -- git ls-remote https://github.com/org/config.git
kubectl -n argocd get networkpolicy

Fix → Allow egress on 443/22 to the Git host, or set proxy: on the repository secret (or HTTPS_PROXY/NO_PROXY env on repo-server, with NO_PROXY including the cluster service CIDR and .svc).

Prevent → Include Argo CD egress requirements in the platform network design doc.

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

More on Repos, Clusters, Projects & Permissions