From f2c0e23478a81ec89c4be83a9a4d4f398b43c133 Mon Sep 17 00:00:00 2001 From: Gabriele Diener Date: Wed, 18 Sep 2019 09:45:40 +0200 Subject: [PATCH] added auto_upgrade and auto_repair var --- pool/main.tf | 4 ++-- pool/variables.tf | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) 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)