medik8s / node-maintenance-operator

Kubernetes Operator to manage node maintenance through NodeMaintenance custom resources
https://www.medik8s.io/maintenance-node/
Apache License 2.0
27 stars 13 forks source link

Support kubernetes 1.24 control-plane taint #49

Closed malt3 closed 2 years ago

malt3 commented 2 years ago

Starting with kubernetes 1.24, control-plane nodes use the node-role.kubernetes.io/control-plane taint.

The operator deployment should also tolerate this taint in addition to the old master taint: https://github.com/medik8s/node-maintenance-operator/blob/d8add14c84f842269757bd1ec36f55531e5ddb64/config/manager/manager.yaml#L34-L36

razo7 commented 2 years ago

Thanks for pointing this out @malt3. After looking in KEP-2067: Rename the kubeadm "master" label and taint it seems like that in Kubernetes v1.25 (will be released tomorrow) the old master taint should be removed, and only the new taint should be used.

Third stage:

Remove the "node-role.kubernetes.io/master:NoSchedule" taint from Nodes.