Affinity
Affinities work with the help of Expressions to specify inclusions and exclusions for particular needs.
preferredDuringSchedulingIgnoredDuringExecution
preferredDuringSchedulingIgnoredDuringExecution
option is exposed in the affinity instance as addPreference
:
For nodeSelectorTerms
, you can use addNodeSelectorPreference()
with the same parameters.
requiredDuringSchedulingIgnoredDuringExecution
requiredDuringSchedulingIgnoredDuringExecution
option is exposed in the affinity instance as addNodeRequirement
:
For Label Selector requirement, use addLabelSelectorRequirement
:
Last updated