» 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:

» 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.