2021-09-10 20:55:21 +00:00
|
|
|
variable "prefix" {
|
2021-03-15 08:41:04 +00:00
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2021-09-10 20:55:21 +00:00
|
|
|
variable "zone" {
|
|
|
|
type = string
|
2021-03-15 08:41:04 +00:00
|
|
|
}
|
|
|
|
|
2021-09-10 20:55:21 +00:00
|
|
|
variable "template_name" {}
|
|
|
|
|
|
|
|
variable "username" {}
|
2021-03-15 08:41:04 +00:00
|
|
|
|
2021-09-10 20:55:21 +00:00
|
|
|
variable "private_network_cidr" {}
|
2021-03-15 08:41:04 +00:00
|
|
|
|
|
|
|
variable "machines" {
|
|
|
|
description = "Cluster machines"
|
|
|
|
type = map(object({
|
2021-09-10 20:55:21 +00:00
|
|
|
node_type = string
|
2022-05-11 17:15:03 +00:00
|
|
|
plan = string
|
2021-09-10 20:55:21 +00:00
|
|
|
cpu = string
|
|
|
|
mem = string
|
|
|
|
disk_size = number
|
|
|
|
additional_disks = map(object({
|
|
|
|
size = number
|
|
|
|
tier = string
|
|
|
|
}))
|
2021-03-15 08:41:04 +00:00
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "ssh_public_keys" {
|
|
|
|
type = list(string)
|
|
|
|
}
|
2022-05-11 17:15:03 +00:00
|
|
|
|
|
|
|
variable "firewall_enabled" {
|
|
|
|
type = bool
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "master_allowed_remote_ips" {
|
|
|
|
type = list(object({
|
|
|
|
start_address = string
|
|
|
|
end_address = string
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "k8s_allowed_remote_ips" {
|
|
|
|
type = list(object({
|
|
|
|
start_address = string
|
|
|
|
end_address = string
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "loadbalancer_enabled" {
|
|
|
|
type = bool
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "loadbalancer_plan" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "loadbalancers" {
|
|
|
|
description = "Load balancers"
|
|
|
|
|
|
|
|
type = map(object({
|
|
|
|
port = number
|
|
|
|
backend_servers = list(string)
|
|
|
|
}))
|
|
|
|
}
|