OS
OpenSpec HUB

Affinity

Affinity is a group of affinity scheduling rules.

Resource Structure

Interactive Tree
nodeAffinityobject
Describes node affinity scheduling rules for the pod.
podAffinityobject
Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
podAntiAffinityobject
Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
OpenSpec HUB
Source: core.api.k8s.io/Affinity_v1.json