HNHacker News
TopNewBestAskShowJobs

dw2072

3 karma · joined November 13, 2019

submissionscomments
dw2072··on Kubernetes Cordon: How It Works and When to Use It
The article lays it out into two steps, with "Step 1" being to `cordon` and "Step 2" being to `drain`. My understanding was that `cordon` used to be required to (safely) drain a node, hence why so many tutorials still show it, but that on newer versions of K8s, draining a node will automatically cordon it as well.

Of course, if you want to keep the node up and running, but evict the pods, then absolutely that is when `cordon` _should_ be used.

dw2072··on Kubernetes Cordon: How It Works and When to Use It
I believe that in newer k8s versions, running ‘cordon’ is redundant. This doc seems a little outdated.