⎈ k8s knowledge compiler

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.jsonio.k8s.api.core.v1.NodeAffinity

Related (3)

related_to PreferredSchedulingTermreferences type conf=1
related_to NodeSelectorreferences type conf=1
related_to Affinityreferences type conf=1

← all API Explorer