NodeAffinity [api_object]ai-synthesized · conf 0.82
Node affinity is a group of node affinity scheduling rules.
core
NodeAffinity is a field in a PodSpec that specifies how a pod should be scheduled on a node.
Why it matters It allows for more control over where pods are placed, enabling features like affinity and anti-affinity rules.
Key facts - NodeAffinity can be used to specify the node labels or taints that a pod requires - It can also be used to specify the node topology requirements
Common pitfalls - Incorrectly specifying NodeAffinity can lead to pods being stuck in pending state
Related PodSpec, Node
Sources
swagger.json — “io.k8s.api.core.v1.NodeAffinity”