Comments on How to use Node Selectors in Kubernetes
We can restrict a Pod to only be able to run on a particular Node. In this article, we will create pods to see them get deployed on the worker as well as the master node, then we will attach a label to the master node and point pods to get deployed on the master node only using the nodeSelector.
2 Comment(s)
Add comment
Comments
By: Oleg
Hello!
If I want to deploy my nginx to master nodes and also to NODES? What i should to do?
By: Rahul Shivalkar
A Master Node has a taint on it which restricts pods from being scheduled on it. If you remove the taint, pods can get scheduled on the Master Node as well.
To understand this, refer -https://www.howtoforge.com/use-node-affinity-in-kubernetes/