Re:Kubernetes Cordon: How It Works and When to Use It
by candiddevmike on Monday November 21, 2022 @07:33AM
(#33691814)
Is `drain` still a kubectl only construct? I was looking for an API to do this once upon a time and it seemed all the logic for this command lived in the CLI only.
[ Parent
| on HN ]
Re:Kubernetes Cordon: How It Works and When to Use It
by genmaicha123 on Monday November 21, 2022 @07:46AM
(#33691922)
Yup, as of 1.21 drain was still basically a `kubectl` thing – seems like they provided an API for Evictions and for some reason decided not extend that to offer a full 'drain this node' API. That said, Metal3 controllers provide some of this functionality in case you need to manage a bare-metal worker cluster.