kubernetes-node-maintenance-and-troubleshooting
Kubernetes Node Maintenance and Troubleshooting
Purpose
Taking a node out of service — for an OS patch, a hardware swap, a
kubelet upgrade, or decommissioning — is routine, but doing it wrong is
one of the most common self-inflicted causes of a Kubernetes outage: a
drain evicts every non-DaemonSet pod on the node, and if the workload
running there doesn't have enough replicas elsewhere (and no
PodDisruptionBudget to make that constraint explicit), the eviction
itself becomes the incident. Separately, a node that goes NotReady
unexpectedly needs its own diagnosis — kubelet/runtime/network/disk
causes each look similar from kubectl get nodes but require different
fixes. This skill covers the safe cordon/drain/uncordon sequence with
PodDisruptionBudget awareness, and diagnosing an unexpectedly
NotReady node.