Interview Prep/Kubernetes/Scheduling and Pending Pods

New Pods are Pending with `1 node(s) had untolerated taint {node.kubernetes.io/disk-pressure: }` on the only node with free CPU.

IntermediateTroubleshootingScheduling and Pending Pods
Answer

Likely causes → The kubelet set the DiskPressure condition and the node lifecycle controller added the node.kubernetes.io/disk-pressure:NoSchedule taint. The node's root or image filesystem is above the eviction threshold.

Diagnose →

kubectl describe node ip-10-0-1-9 | grep -E 'DiskPressure|Taints'
kubectl debug node/ip-10-0-1-9 -it --image=busybox:1.36 -- df -h /host /host/var/lib/containerd

Fix → Free disk (see the DiskPressure question in the Nodes section): clean unused images, rotate logs, remove the Pod writing huge emptyDir data. The taint is removed automatically once pressure clears.

Prevent → Larger root volumes, ephemeral-storage requests/limits on Pods, and alerts at 75% disk.

All Kubernetes questions Roadmap: Kubernetes core

More on Scheduling and Pending Pods