kubernetes v1.33

PodTemplateSpec.spec.affinity

Affinity is a group of affinity scheduling rules.

3 fields
PodTemplateSpec.spec.affinity fields and descriptions
Field / TypeDescription
NodeAffinity

Describes node affinity scheduling rules for the pod.

PodAffinity

Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).

PodAntiAffinity

Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).