Interview Prep/Real-World Interview/Kubernetes cluster-level

A node goes NotReady and kubelet logs "PLEG is not healthy: pleg was last seen active 3m10s ago; threshold is 3m0s".

IntermediateTroubleshootingKubernetes cluster-level
Answer

Likely causes → The kubelet's Pod Lifecycle Event Generator couldn't list containers from the runtime in time. The container runtime is hung or overloaded: too many containers on the node, a stuck container that won't stop, disk I/O saturation, or a runtime bug.

Diagnose →

kubectl describe node <node> | grep -A10 Conditions
# on the node
sudo journalctl -u kubelet --since "-15m" | grep -i pleg
sudo crictl ps -a | wc -l
time sudo crictl ps
sudo systemctl status containerd
iostat -xz 1 3

Fix → Cordon and drain the node; restarting containerd and kubelet usually brings it back, but on a cloud cluster replacing the node is faster and cleaner.

Prevent → Keep maxPods reasonable, give nodes enough disk IOPS for container churn, keep the runtime patched, and enable node auto-repair (EKS node monitoring agent or GKE auto-repair).

All Real-World Interview questions Roadmap: Interview readiness

More on Kubernetes cluster-level