OptionalnodeDescribes node affinity scheduling rules for the pod.
OptionalpodDescribes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
OptionalpodDescribes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
Affinity is a group of affinity scheduling rules.