In this blog, we will show you the steps to run a POD in a Selected Node in the kubernetes environment.
REQUIREMENTS
- 2 Node Cluster ( 1 Master VM with 2 Nodes)
- Kubernetes Components
INFRASTRUCTURE OVERVIEW
- We have already installed and configured the 2 Node cluster in our demo environment.
- Please check the URL https://www.assistanz.com/steps-to-install-kubernetes-cluster-manually-using-centos-7/ for more information.
ADDING LABEL TO A NODE USING KUBECTL
- Log in to the master server through putty.

- Use show labels option to view the node’s labels.
kubectl get nodes --show-labels

- Use the label command to set a label for a node.
Syntax: kubectl label