node affinity

Rules in a pod spec that say which nodes the pod must run on, or would prefer, based on node labels such as zone or hardware.

In more detail

A required rule is hard: if no node matches, the pod stays Pending as unschedulable. A preferred rule is soft and only influences scoring, which keeps alternatives open during failures. nodeSelector is the simplest hard form, an exact label match.

Related terms

Taught in

References

Certification courses