`kubectl logs` and `kubectl exec` fail for Pods on one node with `Error from server: Get "https://10.0.1.12:10250/containerLogs/...": dial tcp 10.0.1.12:10250: i/o timeout`.
IntermediateTroubleshootingNodes, kubelet and container runtime
Answer
Likely causes → The API server cannot reach the kubelet port 10250 on that node: security group or firewall rule, node in a subnet without a route from the control plane, or the kubelet is down. The Pods themselves may be perfectly healthy.
Diagnose →
kubectl get node ip-10-0-1-12 -o wide
# From another node or a debug pod on the same network
nc -zv 10.0.1.12 10250
# On the node
sudo ss -lntp | grep 10250
Fix → Open TCP 10250 from the control plane security group / CIDR to the nodes. On EKS, the cluster security group must allow it. While investigating, use crictl logs on the node directly.
Prevent → Manage node security groups in IaC with the required control-plane rules.
More on Nodes, kubelet and container runtime
A node is `NotReady` and `kubectl describe node` shows `container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized`.BeginnerA node flips to `NotReady` with `Kubelet stopped posting node status`.BeginnerNode condition shows `PLEG is not healthy: pleg was last seen active 3m10s ago; threshold is 3m0s`.AdvancedAfter a reboot the kubelet will not start: `failed to run Kubelet: running with swap on is not supported, please disable swap!`.BeginnerOn a new kubeadm node, static control-plane Pods and other Pods restart randomly every few minutes. Containerd is installed from the distro.AdvancedPods are evicted from a node with `The node was low on resource: ephemeral-storage. Threshold quantity: 10%, available: 8%` and the node shows `DiskPressure`.Intermediate