Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a drained node back again in kubernetes cluster?

We had a situation where we had to drain a Kubernetes node. K8S drained node

Is there anything I can do to enable pod scheduling back again? Please suggest.

like image 422
Navneet Nandan Jha Avatar asked Oct 29 '18 08:10

Navneet Nandan Jha


People also ask

What happens when you drain a node Kubernetes?

Once the drain command is executed the following happens: The node is cordoned. It means that no new pods can be placed on this node. In the Kubernetes world, it is a Taint node.kubernetes.io/unschedulable:NoSchedule placed on the node that most of the pods tolerate.


1 Answers

You've most likely used the kubectl cordon <node name> to set your node as un-scheduleable.

To revert this you can run kubectl uncordon <node name> to make it schedulable again.

If this doesn't allow you to schedule on this node please provide the outputs of kubectl describe node <node name>.

Good luck!

like image 72
yomateo Avatar answered Sep 27 '22 22:09

yomateo