Skip to content

Commit

Permalink
Merge pull request #4 from datafold/gerard-cx-2634-gcp-nodepool-does-…
Browse files Browse the repository at this point in the history
…not-scale-down

fix: Better downscaling
  • Loading branch information
gtoonstra authored Mar 25, 2024
2 parents 7baa31e + 57d83d9 commit 423abed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -96,6 +101,7 @@ resource "google_container_node_pool" "default" {
autoscaling {
min_node_count = 1
max_node_count = 2
location_policy = "ANY"
}

management {
Expand Down

0 comments on commit 423abed

Please sign in to comment.