When to use node selectors
Assume you have a pod that requires a GPU, but only Node 1 has a GPU and Node 2 does not. You want to schedule the pod on Node 1. There are two ways to achieve this:Node Selectors
Simple label-based node targeting. Works well for straightforward single-condition requirements.
Node Affinity
More expressive rules supporting complex conditions such as “large or medium GPU”.