FahamLah

Commands

kubectl cordon

kubectl cordon <node> | kubectl uncordon <node>

Risk: Careful

What it does

Stops new pods going to a node. Pods already there stay.

When to use it

Before work on a node.

Example

$ kubectl cordon dev-worker

No new trays at this stall.

$ kubectl uncordon dev-worker

The stall takes trays again.