`kubectl logs` and `kubectl exec` fail with `dial tcp 10.0.3.15:10250: i/o timeout`, while `kubectl get pods` works.
IntermediateTroubleshootingContainers, Kubernetes, IPv6 and packet captures
Answer
Likely causes → get only talks to the API server, but logs/exec/port-forward require the API server to connect to the kubelet on the node (TCP 10250). The node security group or firewall blocks 10250 from the control plane, or the node's kubelet is down.
Diagnose →
kubectl get nodes -o wide
kubectl get --raw /api/v1/nodes/<node>/proxy/healthz
aws ec2 describe-security-groups --group-ids <node-sg> --query 'SecurityGroups[0].IpPermissions[?ToPort==`10250`]'
sudo systemctl status kubelet # on the node
Fix → Allow TCP 10250 from the control plane SG (EKS cluster SG) to the nodes, and restart kubelet if it's down.
Prevent → Use the managed node group or eksctl default SGs, and don't strip "unused looking" rules from node SGs.
More on Containers, Kubernetes, IPv6 and packet captures
After someone ran `iptables -F` (or restarted firewalld), all Docker containers lost outbound connectivity.Intermediate`docker run -p 8080:80 myapp` starts fine, but `curl localhost:8080` returns `Connection reset by peer`.BeginnerTwo containers on the default bridge network can't reach each other by container name.Beginner`docker run -p 80:80 nginx` fails with `Bind for 0.0.0.0:80 failed: port is already allocated`.BeginnerA new Kubernetes node stays `NotReady` with `container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized`.IntermediateA Service returns `Connection refused` / nothing, and `kubectl get endpoints myapp` shows `<none>`.Beginner