Hi Good afternoon. I am in new in K8s, I have 1 doubt, if How can master node wi . . .

Ravi Khatri:
Hi Good afternoon.
I am in new in K8s, I have 1 doubt, if How can master node will route traffic if 1 worker node will failed in a cluster. Or if need to stop one node from cluster for maintenance.

Bibhu Mishra:
to stop traffic flowing into the affected node, drain the node

Bibhu Mishra:
$kubectl drain <node_name> --ignore-daemonsets --delete-local-data

Bibhu Mishra:
After fixing the node or upgrading the node, you can uncordon it

Bibhu Mishra:
kubectl uncordon <node_name>

Bibhu Mishra:
it will add the node back to cluster, and traffic will start flowing into it again

Priyanshu:
It will schedule pod or deployment of worker node on master node itself if no Taints or tolerations are there on master
(If only one worker node and one master node is there)

Ravi Khatri:
Thanks @Bibhu Mishra / @Priyanshu