The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
new()
withWeight(weight)
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
Required. A pod affinity term, associated with the corresponding weight.
mixinInstance(podAffinityTerm)
withNamespaces(namespaces)
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means “this pod’s namespace”
withNamespacesMixin(namespaces)
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means “this pod’s namespace”
withTopologyKey(topologyKey)
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
A label query over a set of resources, in this case pods.
mixinInstance(labelSelector)
withMatchExpressions(matchExpressions)
matchExpressions is a list of label selector requirements. The requirements are ANDed.
withMatchExpressions
takes an array of type matchExpressionsType
. You can create
an instance of matchExpressionsType
with hidden.meta.v1.labelSelectorRequirement.new()
.
see hidden.meta.v1.labelSelectorRequirement
withMatchExpressionsMixin(matchExpressions)
matchExpressions is a list of label selector requirements. The requirements are ANDed.
withMatchExpressionsMixin
takes an array of type matchExpressionsType
. You can create
an instance of matchExpressionsType
with hidden.meta.v1.labelSelectorRequirement.new()
.
see hidden.meta.v1.labelSelectorRequirement
withMatchLabels(matchLabels)
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
withMatchLabelsMixin(matchLabels)
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.