Freigeben über


ManagedClusterPropertiesAutoScalerProfile Class

Definition

Parameters to be applied to the cluster-autoscaler when enabled

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClusterPropertiesAutoScalerProfileTypeConverter))]
public class ManagedClusterPropertiesAutoScalerProfile : Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPropertiesAutoScalerProfile
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ManagedClusterPropertiesAutoScalerProfileTypeConverter))>]
type ManagedClusterPropertiesAutoScalerProfile = class
    interface IManagedClusterPropertiesAutoScalerProfile
    interface IJsonSerializable
Public Class ManagedClusterPropertiesAutoScalerProfile
Implements IManagedClusterPropertiesAutoScalerProfile
Inheritance
ManagedClusterPropertiesAutoScalerProfile
Attributes
Implements

Constructors

Name Description
ManagedClusterPropertiesAutoScalerProfile()

Creates an new ManagedClusterPropertiesAutoScalerProfile instance.

Properties

Name Description
BalanceSimilarNodeGroup

Detects similar node pools and balances the number of nodes between them. Valid values are 'true' and 'false'

DaemonsetEvictionForEmptyNode

DaemonSet pods will be gracefully terminated from empty nodes. If set to true, all daemonset pods on empty nodes will be evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted.

DaemonsetEvictionForOccupiedNode

DaemonSet pods will be gracefully terminated from non-empty nodes. If set to true, all daemonset pods on occupied nodes will be evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted.

Expander

The expander to use when scaling up. If not specified, the default is 'random'. See expanders for more information.

IgnoreDaemonsetsUtilization

Should CA ignore DaemonSet pods when calculating resource utilization for scaling down. If set to true, the resources used by daemonset will be taken into account when making scaling down decisions.

MaxEmptyBulkDelete

The maximum number of empty nodes that can be deleted at the same time. This must be a positive integer. The default is 10.

MaxGracefulTerminationSec

The maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node. The default is 600.

MaxNodeProvisionTime

The maximum time the autoscaler waits for a node to be provisioned. The default is '15m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.

MaxTotalUnreadyPercentage

The maximum percentage of unready nodes in the cluster. After this percentage is exceeded, cluster autoscaler halts operations. The default is 45. The maximum is 100 and the minimum is 0.

NewPodScaleUpDelay

Ignore unscheduled pods before they're a certain age. For scenarios like burst/batch scale where you don't want CA to act before the kubernetes scheduler could schedule all the pods, you can tell CA to ignore unscheduled pods before they're a certain age. The default is '0s'. Values must be an integer followed by a unit ('s' for seconds, 'm' for minutes, 'h' for hours, etc).

OkTotalUnreadyCount

The number of allowed unready nodes, irrespective of max-total-unready-percentage. This must be an integer. The default is 3.

ScaleDownDelayAfterAdd

How long after scale up that scale down evaluation resumes. The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.

ScaleDownDelayAfterDelete

How long after node deletion that scale down evaluation resumes. The default is the scan-interval. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.

ScaleDownDelayAfterFailure

How long after scale down failure that scale down evaluation resumes. The default is '3m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.

ScaleDownUnneededTime

How long a node should be unneeded before it is eligible for scale down. The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.

ScaleDownUnreadyTime

How long an unready node should be unneeded before it is eligible for scale down. The default is '20m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.

ScaleDownUtilizationThreshold

Node utilization level, defined as sum of requested resources divided by capacity, below which a node can be considered for scale down. The default is '0.5'.

ScanInterval

How often cluster is reevaluated for scale up or down. The default is '10'. Values must be an integer number of seconds.

SkipNodesWithLocalStorage

If cluster autoscaler will skip deleting nodes with pods with local storage, for example, EmptyDir or HostPath. The default is true.

SkipNodesWithSystemPod

If cluster autoscaler will skip deleting nodes with pods from kube-system (except for DaemonSet or mirror pods). The default is true.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ManagedClusterPropertiesAutoScalerProfile.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ManagedClusterPropertiesAutoScalerProfile.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPropertiesAutoScalerProfile.

FromJsonString(String)

Creates a new instance of ManagedClusterPropertiesAutoScalerProfile, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ManagedClusterPropertiesAutoScalerProfile into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to