nodeSelector
NodeSelector is a field in the Kubernetes Pod specification that constrains the scheduler to place a Pod only on nodes that have matching labels. It provides a simple mechanism to ensure Pods run on nodes with certain characteristics, such as hardware type, geographic location, or policy requirements.
How it works: The scheduler compares the nodeSelector map against the labels on each candidate Node. A
Limitations and relation to other features: For more expressive scheduling, Kubernetes offers nodeAffinity and taints/tolerations. NodeSelector
Practical notes: To use nodeSelector, label nodes accordingly (for example, kubectl label nodes <node-name> disktype=ssd). Pods