Use spot VMs for test VM and for NVAs (#734)

This commit is contained in:
Simone Ruffilli 2022-07-13 13:57:03 +02:00 committed by GitHub
parent 71ae8601c6
commit ef27d2e9d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 75 additions and 7 deletions

View File

@ -58,9 +58,7 @@ module "nva-template-ew1" {
options = {
allow_stopping_for_update = true
deletion_protection = false
# Creates preemptible instances, cheaper than regular one. Only suitable for testing.
preemptible = true
spot = true
spot = true
}
metadata = {
startup-script = templatefile(

View File

@ -16,7 +16,7 @@
# tfdoc:file:description temporary instances for testing
# Untrusted (Landing)
# # Untrusted (Landing)
# module "test-vm-landing-untrusted-ew1-0" {
# source = "../../../modules/compute-vm"
@ -37,6 +37,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update
@ -64,6 +69,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update
@ -72,7 +82,7 @@
# }
# }
# Trusted (hub)
# # Trusted (hub)
# module "test-vm-landing-trusted-ew1-0" {
# source = "../../../modules/compute-vm"
@ -93,6 +103,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update
@ -120,6 +135,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update
@ -128,7 +148,7 @@
# }
# }
# Dev spoke
# # Dev spoke
# module "test-vm-dev-ew1-0" {
# source = "../../../modules/compute-vm"
@ -150,6 +170,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update
@ -178,6 +203,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update
@ -186,7 +216,7 @@
# }
# }
# Prod spoke
# # Prod spoke
# module "test-vm-prod-ew1-0" {
# source = "../../../modules/compute-vm"
@ -208,6 +238,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update
@ -236,6 +271,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update

View File

@ -35,6 +35,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update
@ -63,6 +68,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update
@ -91,6 +101,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update

View File

@ -35,6 +35,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update
@ -63,6 +68,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update
@ -91,6 +101,11 @@
# type = "pd-balanced"
# size = 10
# }
# options = {
# allow_stopping_for_update = true
# deletion_protection = false
# spot = true
# }
# metadata = {
# startup-script = <<EOF
# apt update