Kubernetes 101 : NodeSelectors, pods and scheduling

Displaying the clutser nodes:

To check which nodes we have in our kubernetes cluster, we use the below command:

Then we label the node we want to manually schedule our pod on. We will label the node with the label "graphics=nvidia":

Running our pod on the "nvidia" node:

We want to run our "nginx" application on an "nvidia" equipped node.
We check the labeling of our node using the below:

Then we create the pod that will run the "nginx" application on "node-1" that has the "graphics: nvidia" label:

We create our pod using the below command:



Leave as a comment: