Hi, while going through the video I have one dought when the scheduler is not pr . . .

Rushikesh Shelke:
Hi, while going through the video I have one dought when the scheduler is not present the POD is in a pending state. but, after defining the nodeName in yml how the pod was assigned to the mentioned node. if the scheduler is not present

Alistair Mackay:
If you set nodeName yourself in a pod definition, it does not require the scheduler. Kubelet for that node sees its own nodeName and launches the pod directly, so that works whether or not kube-scheduler is running.

What kube-scheduler actually does is to make a decision which node a pod should go in, then it updates the pod manifest stored in etcd database to add the nodeName property - its job is done once it has made that edit.

Once nodeName has been set by the scheduler, then the kubelet does as described above.

Alistair Mackay:
If nodeName is already set by you, then the pod is ignored by the scheduler.

Rushikesh Shelke:
Thanks for helping me for clearing the concepts.

Rushikesh Shelke:
I got it now.