diff --git a/terraform.tf b/terraform.tf index 9e02040..324fd54 100644 --- a/terraform.tf +++ b/terraform.tf @@ -29,6 +29,10 @@ resource "linode_lke_cluster" "foobar" { content { type = pool.value["type"] count = pool.value["count"] + autoscaler { + min = pool.value["count"] + max = pool.value["max"] + } } } provisioner "local-exec" { diff --git a/terraform.tfvars b/terraform.tfvars index fc01d21..905fb65 100644 --- a/terraform.tfvars +++ b/terraform.tfvars @@ -4,6 +4,7 @@ region = "us-central" pools = [ { type : "g6-standard-1" - count : 3 + count : 1 + max : 5 } ]