Keep 1 node alive so autoscaler doesn't scale to 0

Should help speed up startup, avoiding errors like "pod couldn't be scheduled"
This commit is contained in:
E M 2026-05-01 11:36:53 +10:00
parent 358c03c05e
commit a9cb218d59
No known key found for this signature in database

View File

@ -38,11 +38,11 @@ resource "google_container_cluster" "this" {
node_pool {
name = var.tests_pool_name
initial_node_count = 0
initial_node_count = 1
node_locations = length(var.tests_pool_zones) > 0 ? var.tests_pool_zones : null
autoscaling {
min_node_count = 0
min_node_count = 1
max_node_count = var.tests_pool_max
}