Udostępnij przez


ManagedClusterAutoScalerProfile Class

Definition

Parameters to be applied to the cluster-autoscaler when enabled Serialized Name: ManagedClusterPropertiesAutoScalerProfile

public class ManagedClusterAutoScalerProfile : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ContainerService.Models.ManagedClusterAutoScalerProfile>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ContainerService.Models.ManagedClusterAutoScalerProfile>
public class ManagedClusterAutoScalerProfile
type ManagedClusterAutoScalerProfile = class
    interface IJsonModel<ManagedClusterAutoScalerProfile>
    interface IPersistableModel<ManagedClusterAutoScalerProfile>
type ManagedClusterAutoScalerProfile = class
Public Class ManagedClusterAutoScalerProfile
Implements IJsonModel(Of ManagedClusterAutoScalerProfile), IPersistableModel(Of ManagedClusterAutoScalerProfile)
Public Class ManagedClusterAutoScalerProfile
Inheritance
ManagedClusterAutoScalerProfile
Implements

Constructors

Name Description
ManagedClusterAutoScalerProfile()

Initializes a new instance of ManagedClusterAutoScalerProfile.

Properties

Name Description
BalanceSimilarNodeGroups

Detects similar node pools and balances the number of nodes between them. Valid values are 'true' and 'false' Serialized Name: ManagedClusterPropertiesAutoScalerProfile.balance-similar-node-groups

DaemonsetEvictionForEmptyNodes

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. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.daemonset-eviction-for-empty-nodes

DaemonsetEvictionForOccupiedNodes

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. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.daemonset-eviction-for-occupied-nodes

Expander

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

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. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.ignore-daemonsets-utilization

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. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.max-empty-bulk-delete

MaxGracefulTerminationSec

The maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node. The default is 600. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.max-graceful-termination-sec

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. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.max-node-provision-time

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. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.max-total-unready-percentage

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). Serialized Name: ManagedClusterPropertiesAutoScalerProfile.new-pod-scale-up-delay

OkTotalUnreadyCount

The number of allowed unready nodes, irrespective of max-total-unready-percentage. This must be an integer. The default is 3. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.ok-total-unready-count

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. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.scale-down-delay-after-add

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. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.scale-down-delay-after-delete

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. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.scale-down-delay-after-failure

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. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.scale-down-unneeded-time

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. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.scale-down-unready-time

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'. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.scale-down-utilization-threshold

ScanIntervalInSeconds

How often cluster is reevaluated for scale up or down. The default is '10'. Values must be an integer number of seconds. Serialized Name: ManagedClusterPropertiesAutoScalerProfile.scan-interval

SkipNodesWithLocalStorage

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

SkipNodesWithSystemPods

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

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ManagedClusterAutoScalerProfile>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ManagedClusterAutoScalerProfile>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ManagedClusterAutoScalerProfile>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ManagedClusterAutoScalerProfile>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ManagedClusterAutoScalerProfile>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to