From 57d83d95536dfcee93804255db509f86ce7f8fc4 Mon Sep 17 00:00:00 2001 From: Gerard Toonstra Date: Mon, 25 Mar 2024 10:15:47 +0100 Subject: [PATCH] fix: Better downscaling --- modules/gke/main.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/gke/main.tf b/modules/gke/main.tf index 5996821..2d06fb6 100644 --- a/modules/gke/main.tf +++ b/modules/gke/main.tf @@ -60,6 +60,11 @@ resource "google_container_cluster" "default" { node_config, ] } + + cluster_autoscaling { + enabled = false + autoscaling_profile = "OPTIMIZE_UTILIZATION" + } } resource "google_container_node_pool" "default" { @@ -96,6 +101,7 @@ resource "google_container_node_pool" "default" { autoscaling { min_node_count = 1 max_node_count = 2 + location_policy = "ANY" } management {