We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43f7220 commit 9bd71a9Copy full SHA for 9bd71a9
modules/gke/main.tf
@@ -155,7 +155,7 @@ resource "google_container_node_pool" "default" {
155
156
autoscaling {
157
min_node_count = 1
158
- max_node_count = 2
+ max_node_count = var.max_node_count
159
location_policy = "ANY"
160
}
161
modules/gke/variables.tf
@@ -92,6 +92,12 @@ variable "initial_node_count" {
92
description = "The initial number of nodes for each node pool in the GKE cluster"
93
94
95
+variable "max_node_count" {
96
+ type = number
97
+ default = 4
98
+ description = "The maximum number of nodes in the cluster"
99
+}
100
+
101
variable "machine_type" {
102
type = string
103
default = "e2-highmem-8"
0 commit comments