Skip to content
Opsfolk

Running a cluster, topic 54 of 61

Nodes and their maintenance

A node registers itself through its kubelet, and its conditions say whether it is ready and under any pressure. Before maintenance, kubectl cordon stops new Pods landing on it and kubectl drain evicts the ones there, respecting PodDisruptionBudgets; uncordon puts it back.

DaemonSet Pods are not drained, and Pods with local data need a flag. Replacing nodes rather than patching them in place is a common habit in the cloud.

On Opsfolk

Nothing of ours for this topic yet: an article is on its way.

Elsewhere

Your progress