Kubernetes 101 : Scheduling pods on a specific node



We have the below Yaml file of a pod that is supposed to be scheduled on node "nodeName: worker-1" :


We create that pod using the below command:


To display the pods that are running on the node "worker-1", we use the below command:


We could also use the "!=" symbol instead of the "=" symbol to get all the pods that don't live on the node "worker-1".

To only display the IP addresses of the pods that live on "worker-1", we use the below command:


Comments

Leave as a comment:

Archive