Skip to content

Commit 9bd71a9

Browse files
committed
fix: Make 4 default max size
1 parent 43f7220 commit 9bd71a9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

modules/gke/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ resource "google_container_node_pool" "default" {
155155

156156
autoscaling {
157157
min_node_count = 1
158-
max_node_count = 2
158+
max_node_count = var.max_node_count
159159
location_policy = "ANY"
160160
}
161161

modules/gke/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ variable "initial_node_count" {
9292
description = "The initial number of nodes for each node pool in the GKE cluster"
9393
}
9494

95+
variable "max_node_count" {
96+
type = number
97+
default = 4
98+
description = "The maximum number of nodes in the cluster"
99+
}
100+
95101
variable "machine_type" {
96102
type = string
97103
default = "e2-highmem-8"

0 commit comments

Comments
 (0)