terraform/gcp: Allow to use preemptible VM instances (#8480)

This commit is contained in:
Mathieu Parent
2022-01-31 09:30:24 +01:00
committed by GitHub
parent ababcd5481
commit 3562d3378b
5 changed files with 38 additions and 4 deletions

View File

@@ -44,6 +44,11 @@ variable "master_sa_scopes" {
default = ["https://www.googleapis.com/auth/cloud-platform"]
}
variable "master_preemptible" {
type = bool
default = false
}
variable "worker_sa_email" {
type = string
default = ""
@@ -54,6 +59,11 @@ variable "worker_sa_scopes" {
default = ["https://www.googleapis.com/auth/cloud-platform"]
}
variable "worker_preemptible" {
type = bool
default = false
}
variable ssh_pub_key {
description = "Path to public SSH key file which is injected into the VMs."
type = string