Skip to content

Commit 45cd608

Browse files
UbuntuQBYMKPI
authored andcommitted
fixed GitHub Issue #1445 | location_policy permadrifting
1 parent 92ebb00 commit 45cd608

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cluster.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,9 @@ resource "google_container_node_pool" "pools" {
331331
dynamic "autoscaling" {
332332
for_each = lookup(each.value, "autoscaling", true) ? [each.value] : []
333333
content {
334-
min_node_count = lookup(autoscaling.value, "min_count", 1)
335-
max_node_count = lookup(autoscaling.value, "max_count", 100)
334+
location_policy = "BALANCED"
335+
min_node_count = lookup(autoscaling.value, "min_count", 1)
336+
max_node_count = lookup(autoscaling.value, "max_count", 100)
336337
}
337338
}
338339

0 commit comments

Comments
 (0)