AutoscalingConfig

class AutoscalingConfig : KotlinCustomResource

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 parameter expander. NOTE: From version 1.237.0, support for selecting the type of autoscaler by parameter scaler_type.

Properties

Link copied to clipboard
val clusterId: Output<String>?

The id of kubernetes cluster.

Link copied to clipboard
val coolDownDuration: Output<String>?

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.

Link copied to clipboard

If true DaemonSet pods will be terminated from nodes. Default is false.

Link copied to clipboard
val expander: Output<String>?

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

Link copied to clipboard

The scale-in threshold for GPU instance. Default is 0.5.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Maximum number of seconds CA waits for pod termination when trying to scale down a node. Default is 14400.

Link copied to clipboard
val minReplicaCount: Output<Int>?

Minimum number of replicas that a replica set or replication controller should have to allow their pods deletion in scale down. Default is 0.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Should CA delete the K8s node object when recycle node has scaled down successfully. Default is false.

Link copied to clipboard

Specify whether to allow the scale-in of nodes. Default is true.

Link copied to clipboard
val scalerType: Output<String>?

The type of autoscaler. Valid values: cluster-autoscaler, goatscaler. For cluster version 1.22 and below, we only support cluster-autoscaler.

Link copied to clipboard
val scaleUpFromZero: Output<Boolean>?

Should CA scale up when there 0 ready nodes. Default is true.

Link copied to clipboard
val scanInterval: Output<String>?

The interval at which the cluster is reevaluated for scaling. Default is 30s.

Link copied to clipboard

If true cluster autoscaler will never delete nodes with pods with local storage, e.g. EmptyDir or HostPath. Default is false.

Link copied to clipboard

If true cluster autoscaler will never delete nodes with pods from kube-system (except for DaemonSet or mirror pods). Default is true.

Link copied to clipboard
val unneededDuration: Output<String>?

The unneeded duration. Default is 10m.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

The scale-in threshold. Default is 0.5.