Lack of pod connectivity on EKS

0

I have an EKS cluster(1.24) launched with Terraform's AWS EKS module. System generated security groups. Private or public subnets.

Cluster Inbound: cluster inbound

Node Inbound: node inbound

Node Outbound: node outbound

The cluster has 1 node and the backplane. It comes online the node connects and is in a ready state. Although coredns is mega sad as it can't fetch the version from the Cluster API.

When it comes online there is no sign of issue but it wont connect to the control plane API via the local loop back. And it has no internet connectivity.


./kubectl run -i --tty --rm debug --image=busybox -- sh
If you don't see a command prompt, try pressing enter.
/ #  wget $KUBERNETES_PORT_443_TCP_ADDR:$KUBERNETES_PORT_443_TCP_PORT/version
Connecting to 172.20.0.1:443 (172.20.0.1:443)
wget: can't connect to remote host (172.20.0.1): Connection timed out

/ # nc gooogle.com
nc: bad address 'gooogle.com'

I've checked the NACL against another account where its working and it looks okay to me. I've tried it with and without the VPC CNI. NACL Inbound: naclinbound NACL Outbound: nacloutbound

At node level, the node can connect to the internet, and pull images. What am I missing at pod level, why can't it connect to the API and why can't it connect to the internet? I don't have admin rights for the VPC and Subnetting but I have checked it against another account where the same stuff seems to work.

2개 답변
0

Someone who comes up with our custom AMI images decided to set sysctl net.ipv4.ip_forward to 0 which blocked all network traffic

답변함 9달 전
0

For AWS level networking configuration (i.e. the VPC), I recommend testing your connectivity with the VPC Reachability Analyzer tool. If that doesn't clarify the problem then it is likely at the Kubernetes or Operating System levels.

AWS
답변함 9달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인