» alicloud_cs_kubernetes_autoscaler

This resource will help you to manager cluster-autoscaler in Kubernetes Cluster.

» Example Usage

cluster-autoscaler in Kubernetes Cluster

resource "alicloud_cs_kubernetes_autoscaler" "default" {
  cluster_id              = "${var.cluster_id}"
  nodepools {
        id                = "scaling_group_id"
        taints            = "c=d:NoSchedule"
        labels            = "a=b"
  utilization             = "${var.utilization}"
  cool_down_duration      = "${var.cool_down_duration}"
  defer_scale_in_duration = "${var.defer_scale_in_duration}"

» Argument Reference

The following arguments are supported:

  • cluster_id - (Required) The id of kubernetes cluster.
  • nodepools - (Required)
  • nodepools.id - (Required) The scaling group id of the groups configured for cluster-autoscaler.
  • nodepools.taints - (Required) The taints for the nodes in scaling group.
  • nodepools.labels - (Required) The labels for the nodes in scaling group.
  • utilization - (Required) The utilization option of cluster-autoscaler.
  • cool_down_duration (Required) The cool_down_duration option of cluster-autoscaler.
  • defer_scale_in_duration (Required) The defer_scale_in_duration option of cluster-autoscaler.
  • use_ecs_ram_role_token (Optional, Available in 1.88.0+) Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false

» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 90 mins) Used when creating cluster-autoscaler in the kubernetes cluster (until it reaches the initial running status).
  • update - (Defaults to 60 mins) Used when activating the cluster-autoscaler in the kubernetes cluster when necessary during update.
  • delete - (Defaults to 60 mins) Used when deleting cluster-autoscaler in kubernetes cluster.