Class Expander
java.lang.Object
com.azure.core.util.ExpandableStringEnum<Expander>
com.azure.resourcemanager.containerservice.models.Expander
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
The expander to use when scaling up. If not specified, the default is 'random'. See
[expanders](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders) for
more information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExpanderSelects the node group that will have the least idle CPU (if tied, unused memory) after scale-up.static final ExpanderSelects the node group that would be able to schedule the most pods when scaling up.static final ExpanderSelects the node group that has the highest priority assigned by the user.static final ExpanderUsed when you don't have a particular need for the node groups to scale differently. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpanderfromString(String name) Creates or finds a Expander from its string representation.static Collection<Expander> values()Gets known Expander values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
LEAST_WASTE
Selects the node group that will have the least idle CPU (if tied, unused memory) after scale-up. This is useful when you have different classes of nodes, for example, high CPU or high memory nodes, and only want to expand those when there are pending pods that need a lot of those resources. -
MOST_PODS
Selects the node group that would be able to schedule the most pods when scaling up. This is useful when you are using nodeSelector to make sure certain pods land on certain nodes. Note that this won't cause the autoscaler to select bigger nodes vs. smaller, as it can add multiple smaller nodes at once. -
PRIORITY
Selects the node group that has the highest priority assigned by the user. It's configuration is described in more details [here](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/expander/priority/readme.md). -
RANDOM
Used when you don't have a particular need for the node groups to scale differently.
-
-
Constructor Details
-
Expander
Deprecated.Use thefromString(String)factory method.Creates a new instance of Expander value.
-
-
Method Details
-
fromString
-
values
Gets known Expander values.- Returns:
- known Expander values.
-
fromString(String)factory method.