My Worker Node Status Is Ready, Schedulingdisabled

I have kubernetes cluster and every thing work fine. after some times I drain my worker node and reset it and join it again to master but

#kubectl get nodes
NAME      STATUS                     ROLES    AGE    VERSION
ubuntu    Ready                      master   159m   v1.14.0
ubuntu1   Ready,SchedulingDisabled   <none>   125m   v1.14.0
ubuntu2   Ready,SchedulingDisabled   <none>   96m    v1.14.0

what should i do?

2 Answers

To prevent a node from scheduling new pods use:

kubectl cordon <node-name>

Which will cause the node to be in the status: Ready,SchedulingDisabled.

To tell is to resume scheduling use:

kubectl uncordon <node-name>

More information about draining a node can be found here. And manual node administration here

1

I fixed it using:

kubectl uncordon <node-name>
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest