Skip to content

Commit

Permalink
[terraform] Turn off node-autoprovisioning in GKE
Browse files Browse the repository at this point in the history
  • Loading branch information
nandajavarma authored and roboquat committed Sep 2, 2022
1 parent aaca753 commit 5e33b9c
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions install/infra/modules/gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,6 @@ resource "google_container_cluster" "gitpod-cluster" {
name = var.cluster_name
location = var.zone == null ? var.region : var.zone

cluster_autoscaling {
enabled = true

resource_limits {
resource_type = "cpu"
minimum = 2
maximum = 16
}

resource_limits {
resource_type = "memory"
minimum = 4
maximum = 64
}
}

min_master_version = var.cluster_version

remove_default_node_pool = true
Expand Down Expand Up @@ -88,6 +72,10 @@ resource "google_container_cluster" "gitpod-cluster" {
horizontal_pod_autoscaling {
disabled = false
}

dns_cache_config {
enabled = true
}
}
}

Expand Down

0 comments on commit 5e33b9c

Please sign in to comment.