dial tcp 20.200.245.247:22: connect: connection timed out 에러 발생# 외부 연결 테스트
kubectl run test-curl --image=curlimages/curl --restart=Never -- curl -m 5 -I https://github.com
# 결과: Connection timed out
0.0.0.0/0 Egress Rules 설정됨# Host network Pod에서는 연결 성공
kubectl exec -n kube-system kube-proxy-xxx -- curl -I https://github.com
# HTTP/2 200 ✅
# 일반 Pod에서는 연결 실패
kubectl run test --image=curlimages/curl -- curl -I https://github.com
# Connection timed out ❌
원인: OCI VCN-Native CNI에서 Pod의 외부 연결을 위한 SNAT 설정 이슈
# repo-server 설정 백업
kubectl get deployment argocd-repo-server -n argocd -o yaml > backup.yaml
# hostNetwork 설정 적용
kubectl patch deployment argocd-repo-server -n argocd --patch='{
"spec": {
"template": {
"spec": {
"hostNetwork": true,
"dnsPolicy": "ClusterFirstWithHostNet"
}
}
}
}'
kubectl get pods -n argocd | grep repo-server
# argocd-repo-server-xxx 1/1 Running