Folks ! I have one query/doubt.. -- I removed scheduler -- in pod manifest fi . . .

Nitish Patni:
Folks !!! I have one query/doubt…

– I removed scheduler
– in pod manifest file I used toleration and nodeSelector

will pod be get deployed based on nodeSelector and toleration applied to it ?

or in pod manifest file I only need to use nodeName whenever we remove scheduler (removed /etc/kubenernetes/maniesfts/kube-scheduler.yaml)

Trung Tran:
nodeSelector will be handled by scheduler, while nodeName will be ignored by scheduler and kubelet will place pod on the named node.
If you remove the scheduler, I don’t think nodeSelector will work, pod will be stuck.
IMO

Amit Kumar:
you can use nodeName to manually schedule the pod

Aneek Bera:
if u remive the scheduler, then who will schedule the pod ?

unnivkn:
Hi @Nitish Patni since nodeName: is manual scheduling, it by passes k8s scheduler. If node crash happens, it will effect your manually scheduled pods, so it’s not a recommended approach.

Nitish Patni:
Thanks guyz for clarification…best thing is now I know nodeName is is bypassing scheduler and nodeSelector looks for scheduler which I was not knowing. Yesterday I tried and faced this issue so posted this query :slightly_smiling_face:

Trung Tran:
Yeah, that why we have this community @Nitish Patni, we can learn from each other :k8s_intensifies:

Aneek Bera:
hahahha. @Nitish Patni hv more doubts…just post it here.