Class UndrainableNodeBehavior
java.lang.Object
com.azure.core.util.ExpandableStringEnum<UndrainableNodeBehavior>
com.azure.resourcemanager.containerservice.models.UndrainableNodeBehavior
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class UndrainableNodeBehavior
extends com.azure.core.util.ExpandableStringEnum<UndrainableNodeBehavior>
Defines the behavior for undrainable nodes during upgrade. The most common cause of undrainable nodes is Pod
Disruption Budgets (PDBs), but other issues, such as pod termination grace period is exceeding the remaining per-node
drain timeout or pod is still being in a running state, can also cause undrainable nodes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UndrainableNodeBehaviorAKS will cordon the blocked nodes and replace them with surge nodes during upgrade.static final UndrainableNodeBehaviorAKS will mark the blocked nodes schedulable, but the blocked nodes are not upgraded. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UndrainableNodeBehaviorfromString(String name) Creates or finds a UndrainableNodeBehavior from its string representation.static Collection<UndrainableNodeBehavior> values()Gets known UndrainableNodeBehavior values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
CORDON
AKS will cordon the blocked nodes and replace them with surge nodes during upgrade. The blocked nodes will be cordoned and replaced by surge nodes. The blocked nodes will have label 'kubernetes.azure.com/upgrade-status:Quarantined'. A surge node will be retained for each blocked node. A best-effort attempt will be made to delete all other surge nodes. If there are enough surge nodes to replace blocked nodes, then the upgrade operation and the managed cluster will be in failed state. Otherwise, the upgrade operation and the managed cluster will be in canceled state. -
SCHEDULE
AKS will mark the blocked nodes schedulable, but the blocked nodes are not upgraded. A best-effort attempt will be made to delete all surge nodes. The upgrade operation and the managed cluster will be in failed state if there are any blocked nodes.
-
-
Constructor Details
-
UndrainableNodeBehavior
Deprecated.Use thefromString(String)factory method.Creates a new instance of UndrainableNodeBehavior value.
-
-
Method Details
-
fromString
Creates or finds a UndrainableNodeBehavior from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding UndrainableNodeBehavior.
-
values
Gets known UndrainableNodeBehavior values.- Returns:
- known UndrainableNodeBehavior values.
-
fromString(String)factory method.