Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ resource "google_compute_health_check" "autoheal" {
project = var.project_id
name = "vault-health-autoheal"

check_interval_sec = 10
timeout_sec = 5
check_interval_sec = var.autoheal_interval_sec
timeout_sec = var.autoheal_timeout_sec
healthy_threshold = 1
unhealthy_threshold = 2

Expand Down
12 changes: 12 additions & 0 deletions modules/cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -400,3 +400,15 @@ variable "tls_ou" {
type = string
default = "IT Security Operations"
}

variable "autoheal_interval_sec" {
description = "How often (in seconds) to send a health check"
type = number
default = 10
}

variable "autoheal_timeout_sec" {
description = "How long (in seconds) to wait before claiming health check failure"
type = number
default = 5
}