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

10/29/2018

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.

-- Navneet Nandan Jha
devops
kubernetes

1 Answer

10/29/2018

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!

-- yomateo
Source: StackOverflow