Skip to content

Commit

Permalink
fix: Make 4 default max size
Browse files Browse the repository at this point in the history
  • Loading branch information
gtoonstra committed Jan 14, 2025
1 parent 43f7220 commit 9bd71a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ resource "google_container_node_pool" "default" {

autoscaling {
min_node_count = 1
max_node_count = 2
max_node_count = var.max_node_count
location_policy = "ANY"
}

Expand Down
6 changes: 6 additions & 0 deletions modules/gke/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ variable "initial_node_count" {
description = "The initial number of nodes for each node pool in the GKE cluster"
}

variable "max_node_count" {
type = number
default = 4
description = "The maximum number of nodes in the cluster"
}

variable "machine_type" {
type = string
default = "e2-highmem-8"
Expand Down

0 comments on commit 9bd71a9

Please sign in to comment.