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>

public final class Expander extends com.azure.core.util.ExpandableStringEnum<Expander>
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

    Fields
    Modifier and Type
    Field
    Description
    static final Expander
    Selects the node group that will have the least idle CPU (if tied, unused memory) after scale-up.
    static final Expander
    Selects the node group that would be able to schedule the most pods when scaling up.
    static final Expander
    Selects the node group that has the highest priority assigned by the user.
    static final Expander
    Used when you don't have a particular need for the node groups to scale differently.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Expander
    Creates or finds a Expander from its string representation.
    Gets known Expander values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, getValue, hashCode, toString, values

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • LEAST_WASTE

      public static final Expander 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

      public static final Expander 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

      public static final Expander 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

      public static final Expander RANDOM
      Used when you don't have a particular need for the node groups to scale differently.
  • Constructor Details

  • Method Details

    • fromString

      public static Expander fromString(String name)
      Creates or finds a Expander from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding Expander.
    • values

      public static Collection<Expander> values()
      Gets known Expander values.
      Returns:
      known Expander values.