# NodeSelector

> What is a nodeSelector in Kubernetes and how do you use it to control where Pods run?

Canonical: https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-node-selector
Last updated: 2026-11-28

Difficulty: Beginner

## Question

What is a nodeSelector in Kubernetes and how do you use it to control where Pods run?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

nodeSelector, Node Labels, Scheduling Constraints, Node Affinity, Taints and Tolerations

Previous: [Kustomize](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-kustomize) · Next: [Pod Security (Admission)](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-pod-security-policies) · [All of Kubernetes & Orchestration](https://www.internhack.in/learn/interview/kubernetes-orchestration)

## More Kubernetes & Orchestration questions

- [Dry Run](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-dry-run)
- [Force Delete](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-delete-force)
- [Port Forwarding](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-port-forwarding)
- [CRDs](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-custom-resource-definitions)
- [Operators](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-operators-pattern)
- [Etcd Role](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-etcd-role)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Kubernetes & Orchestration](https://www.internhack.in/learn/interview/kubernetes-orchestration)
