Q9Kubernetes Fundamentals
What does `nodeSelector` in a `PodSpec` use to schedule Pods onto the intended nodes?
← → navigate · a answer
Community votes
Discussion · 1
D 1
The nodeSelector field within a PodSpec is used to place Pods on target nodes based on the labels assigned to those nodes. Labels are key-value pairs that can be attached to Kubernetes objects, including nodes, to provide metadata that can be used for selection and organization.