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