diff --git a/pool/main.tf b/pool/main.tf index f8127ae..2ab0f78 100644 --- a/pool/main.tf +++ b/pool/main.tf @@ -6,8 +6,8 @@ resource "google_container_node_pool" "pool" { initial_node_count = var.node_count management { - auto_repair = true - auto_upgrade = true + auto_repair = var.auto_repair + auto_upgrade = var.auto_upgrade } autoscaling { diff --git a/pool/variables.tf b/pool/variables.tf index 1f54660..9d63b1e 100644 --- a/pool/variables.tf +++ b/pool/variables.tf @@ -64,6 +64,16 @@ variable "preemptible" { default = false } +variable "auto_upgrade" { + description = "Activate auto upgrade on nodes" + default = true +} + +variable "auto_repair" { + description = "Activate auto repair on nodes" + default = true +} + variable "labels" { description = "The Kubernetes labels to be applied to each node" type = map(string)