Skip to content

Commit 14259b5

Browse files
UbuntuUbuntu
authored andcommitted
fixed GitHub Issue #1445 | location_policy permadrifting
1 parent 335c62a commit 14259b5

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
@@ -324,8 +324,9 @@ resource "google_container_node_pool" "pools" {
324324
dynamic "autoscaling" {
325325
for_each = lookup(each.value, "autoscaling", true) ? [each.value] : []
326326
content {
327-
min_node_count = lookup(autoscaling.value, "min_count", 1)
328-
max_node_count = lookup(autoscaling.value, "max_count", 100)
327+
location_policy = "BALANCED"
328+
min_node_count = lookup(autoscaling.value, "min_count", 1)
329+
max_node_count = lookup(autoscaling.value, "max_count", 100)
329330
}
330331
}
331332

0 commit comments

Comments
 (0)