Containers on a node fail with `fork: Resource temporarily unavailable` and the node shows `PIDPressure`.
AdvancedTroubleshootingNodes, kubelet and container runtime
Answer
Likely causes → PID exhaustion: a fork bomb, a leaking process spawner, or zombie processes because PID 1 in a container does not reap children.
Diagnose →
kubectl describe node ip-10-0-1-9 | grep PIDPressure
# On the node
ps -eo ppid,stat | awk '$2 ~ /Z/' | wc -l
ps -eo pid,comm --sort=-pid | head
cat /proc/sys/kernel/pid_max
Fix → Kill or restart the offending Pod. Add a proper init (tini, shareProcessNamespace or --init) so zombies are reaped.
Prevent → Set podPidsLimit in the kubelet config (e.g. 4096) so one Pod cannot exhaust the node.
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