Interview Prep/Networking/Containers, Kubernetes, IPv6 and packet captures

`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.

All Networking questions Roadmap: Networking for DevOps

More on Containers, Kubernetes, IPv6 and packet captures