I've deployed a Kubernetes cluster using the Azure CLI (az acs create
command). The nodes in the cluster are running Windows.
I want to shutdown and restart a worker node.
I tried kubectl drain
to remove the node from the cluster. This works and the node status changes to 'Ready, SchedulingDisabled'
I then shutdown the node using the Azure portal. At this point the node status changes to 'NotReady, SchedulingDisabled'
I then restart the node using the Azure portal. However, the node status remains at 'NotReady, SchedulingDisabled'. I was expecting it to become 'Ready, SchedulingDisabled' and be then able to run kubectl uncordon
to make it available again.
What is the recommended process for shutting down and restarting nodes in a Kubernetes cluster?