Autoscaling Config Args
This resource will help you configure auto scaling for the kubernetes cluster, see What is autoscaling config.
NOTE: Available since v1.127.0. NOTE: From version 1.164.0, support for specifying whether to allow the scale-in of nodes by parameter
scale_down_enabled
. NOTE: From version 1.164.0, support for selecting the policy for selecting which node pool to scale by parameterexpander
. NOTE: From version 1.237.0, support for selecting the type of autoscaler by parameterscaler_type
.
Constructors
Properties
The cool down duration. Default is 10m
. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.
If true DaemonSet pods will be terminated from nodes. Default is false
.
The policy for selecting which node pool to scale. Valid values: least-waste
, random
, priority
. For more information on these policies, see Configure auto scaling
The scale-in threshold for GPU instance. Default is 0.5
.
Maximum number of seconds CA waits for pod termination when trying to scale down a node. Default is 14400
.
Minimum number of replicas that a replica set or replication controller should have to allow their pods deletion in scale down. Default is 0
.
Should CA delete the K8s node object when recycle node has scaled down successfully. Default is false
.
Specify whether to allow the scale-in of nodes. Default is true
.
The type of autoscaler. Valid values: cluster-autoscaler
, goatscaler
. For cluster version 1.22 and below, we only support cluster-autoscaler
.
Should CA scale up when there 0 ready nodes. Default is true
.
The interval at which the cluster is reevaluated for scaling. Default is 30s
.
If true cluster autoscaler will never delete nodes with pods with local storage, e.g. EmptyDir or HostPath. Default is false
.
If true cluster autoscaler will never delete nodes with pods from kube-system (except for DaemonSet or mirror pods). Default is true
.
The unneeded duration. Default is 10m
.
The scale-in threshold. Default is 0.5
.