Skip to content

Commit

Permalink
added auto_upgrade and auto_repair var
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Diener committed Sep 18, 2019
1 parent 8dcc8f9 commit f2c0e23
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 10 additions & 0 deletions pool/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f2c0e23

Please sign in to comment.