Class V1NodeAffinity
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1NodeAffinity
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1NodeAffinity
extends Object
Node affinity is a group of node affinity scheduling rules.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddpreferredDuringSchedulingIgnoredDuringExecutionItem
(V1PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecutionItem) Add an item to the preferredDuringSchedulingIgnoredDuringExecution property in a chainable fashion.boolean
List<@Valid V1PreferredSchedulingTerm>
The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions.int
hashCode()
preferredDuringSchedulingIgnoredDuringExecution
(List<@Valid V1PreferredSchedulingTerm> preferredDuringSchedulingIgnoredDuringExecution) Set preferredDuringSchedulingIgnoredDuringExecution in a chainable fashion.requiredDuringSchedulingIgnoredDuringExecution
(V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution) Set requiredDuringSchedulingIgnoredDuringExecution in a chainable fashion.void
setPreferredDuringSchedulingIgnoredDuringExecution
(List<@Valid V1PreferredSchedulingTerm> preferredDuringSchedulingIgnoredDuringExecution) Set the preferredDuringSchedulingIgnoredDuringExecution property valuevoid
setRequiredDuringSchedulingIgnoredDuringExecution
(V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution) Set the requiredDuringSchedulingIgnoredDuringExecution property valuetoString()
-
Field Details
-
JSON_PROPERTY_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION
- See Also:
-
JSON_PROPERTY_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION
- See Also:
-
-
Constructor Details
-
V1NodeAffinity
public V1NodeAffinity()
-
-
Method Details
-
getPreferredDuringSchedulingIgnoredDuringExecution
The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.- Returns:
- the preferredDuringSchedulingIgnoredDuringExecution property value
-
setPreferredDuringSchedulingIgnoredDuringExecution
public void setPreferredDuringSchedulingIgnoredDuringExecution(List<@Valid V1PreferredSchedulingTerm> preferredDuringSchedulingIgnoredDuringExecution) Set the preferredDuringSchedulingIgnoredDuringExecution property value- Parameters:
preferredDuringSchedulingIgnoredDuringExecution
- property value to set
-
preferredDuringSchedulingIgnoredDuringExecution
public V1NodeAffinity preferredDuringSchedulingIgnoredDuringExecution(List<@Valid V1PreferredSchedulingTerm> preferredDuringSchedulingIgnoredDuringExecution) Set preferredDuringSchedulingIgnoredDuringExecution in a chainable fashion.- Returns:
- The same instance of V1NodeAffinity for chaining.
-
addpreferredDuringSchedulingIgnoredDuringExecutionItem
public V1NodeAffinity addpreferredDuringSchedulingIgnoredDuringExecutionItem(V1PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecutionItem) Add an item to the preferredDuringSchedulingIgnoredDuringExecution property in a chainable fashion.- Returns:
- The same instance of V1NodeAffinity for chaining.
-
getRequiredDuringSchedulingIgnoredDuringExecution
- Returns:
- the requiredDuringSchedulingIgnoredDuringExecution property value
-
setRequiredDuringSchedulingIgnoredDuringExecution
public void setRequiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution) Set the requiredDuringSchedulingIgnoredDuringExecution property value- Parameters:
requiredDuringSchedulingIgnoredDuringExecution
- property value to set
-
requiredDuringSchedulingIgnoredDuringExecution
public V1NodeAffinity requiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution) Set requiredDuringSchedulingIgnoredDuringExecution in a chainable fashion.- Returns:
- The same instance of V1NodeAffinity for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-