In this training course, we will learn about Node Selector.
Navigate to the folder
20_nodeselector
from CLI, before you get started.
kubectl get nodes --show-labels
kubectl label node <NODE-NAME> preferred=true
cat pod.yaml
kubectl create -f pod.yaml
kubectl get pods -o wide
kubectl label node <NODE-NAME> preferred-
kubectl delete pods my-pod