File tree 1 file changed +8
-2
lines changed
scaletest/terraform/infra 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,10 @@ resource "google_container_node_pool" "coder" {
48
48
location = var. zone
49
49
project = var. project_id
50
50
cluster = google_container_cluster. primary . name
51
- node_count = var. state == " stopped" ? 0 : var. nodepool_size_coder
51
+ autoscaling {
52
+ min_node_count = 1
53
+ max_node_count = var. nodepool_size_coder
54
+ }
52
55
management {
53
56
auto_upgrade = false
54
57
}
@@ -81,7 +84,10 @@ resource "google_container_node_pool" "workspaces" {
81
84
location = var. zone
82
85
project = var. project_id
83
86
cluster = google_container_cluster. primary . name
84
- node_count = var. state == " stopped" ? 0 : var. nodepool_size_workspaces
87
+ autoscaling {
88
+ min_node_count = 0
89
+ max_node_count = var. nodepool_size_workspaces
90
+ }
85
91
management {
86
92
auto_upgrade = false
87
93
}
You can’t perform that action at this time.
0 commit comments