Manual scheduling of pods:

Below is a Yaml file of a pod that will be scheduled on a specific node, "node-3":


Pods have a parameter called "nodeName".
Usually we don't set it in the pod's Yaml configuration file, kubernetes does it for us automatically.

Kubernetes goes through all the newly created pods and instructs the scheduler to assign a node to the pods with a non-defined "nodeName" parameter.

We can get the names of the nodes in our kubernetes cluster using the below command:


We create our pod using the below command:


We can check if our pod has been scheduled on the "node-3" node using the below command :


Brando Sabatini and Ikbal C ©. Powered by Blogger.