2020-12-25 01:16:26 +08:00
|
|
|
variable "region" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "prefix" {}
|
|
|
|
|
|
|
|
variable "machines" {
|
|
|
|
type = map(object({
|
|
|
|
node_type = string
|
|
|
|
size = string
|
|
|
|
zone = string
|
|
|
|
additional_disks = map(object({
|
|
|
|
size = number
|
|
|
|
}))
|
|
|
|
boot_disk = object({
|
|
|
|
image_name = string
|
2023-01-17 15:46:32 +08:00
|
|
|
size = number
|
2020-12-25 01:16:26 +08:00
|
|
|
})
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "master_sa_email" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "master_sa_scopes" {
|
|
|
|
type = list(string)
|
|
|
|
}
|
|
|
|
|
2022-01-31 16:30:24 +08:00
|
|
|
variable "master_preemptible" {
|
|
|
|
type = bool
|
|
|
|
}
|
|
|
|
|
2022-02-15 16:22:02 +08:00
|
|
|
variable "master_additional_disk_type" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2020-12-25 01:16:26 +08:00
|
|
|
variable "worker_sa_email" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "worker_sa_scopes" {
|
|
|
|
type = list(string)
|
|
|
|
}
|
|
|
|
|
2022-01-31 16:30:24 +08:00
|
|
|
variable "worker_preemptible" {
|
|
|
|
type = bool
|
|
|
|
}
|
|
|
|
|
2022-02-15 16:22:02 +08:00
|
|
|
variable "worker_additional_disk_type" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2020-12-25 01:16:26 +08:00
|
|
|
variable "ssh_pub_key" {}
|
|
|
|
|
|
|
|
variable "ssh_whitelist" {
|
|
|
|
type = list(string)
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "api_server_whitelist" {
|
|
|
|
type = list(string)
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "nodeport_whitelist" {
|
|
|
|
type = list(string)
|
|
|
|
}
|
|
|
|
|
2022-03-03 08:52:46 +08:00
|
|
|
variable "ingress_whitelist" {
|
|
|
|
type = list(string)
|
|
|
|
default = ["0.0.0.0/0"]
|
|
|
|
}
|
|
|
|
|
2020-12-25 01:16:26 +08:00
|
|
|
variable "private_network_cidr" {
|
|
|
|
default = "10.0.10.0/24"
|
|
|
|
}
|
2023-01-17 15:46:32 +08:00
|
|
|
|
|
|
|
variable "extra_ingress_firewalls" {
|
|
|
|
type = map(object({
|
|
|
|
source_ranges = set(string)
|
|
|
|
protocol = string
|
|
|
|
ports = list(string)
|
|
|
|
target_tags = set(string)
|
|
|
|
}))
|
|
|
|
|
|
|
|
default = {}
|
|
|
|
}
|