Adds autohealing to NVA MIGs

This commit is contained in:
Simone Ruffilli 2022-02-27 10:57:21 +01:00
parent c21a59a490
commit 26df0468b6
1 changed files with 22 additions and 2 deletions

View File

@ -84,8 +84,18 @@ module "nva-mig-ew1" {
project_id = module.landing-project.project_id
regional = true
location = "europe-west1"
name = "nva"
name = "nva-ew1"
target_size = 2
auto_healing_policies = {
health_check = module.nva-mig-ew1.health_check.self_link
initial_delay_sec = 30
}
health_check_config = {
type = "tcp"
check = { port = 22 }
config = {}
logging = true
}
default_version = {
instance_template = module.nva-template-ew1.template.self_link
name = "default"
@ -182,8 +192,18 @@ module "nva-mig-ew4" {
project_id = module.landing-project.project_id
regional = true
location = "europe-west4"
name = "nva"
name = "nva-ew4"
target_size = 2
auto_healing_policies = {
health_check = module.nva-mig-ew4.health_check.self_link
initial_delay_sec = 30
}
health_check_config = {
type = "tcp"
check = { port = 22 }
config = {}
logging = true
}
default_version = {
instance_template = module.nva-template-ew4.template.self_link
name = "default"