2021-09-11 04:55:21 +08:00
|
|
|
variable "prefix" {
|
2021-03-15 16:41:04 +08:00
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2021-09-11 04:55:21 +08:00
|
|
|
variable "zone" {
|
|
|
|
type = string
|
2021-03-15 16:41:04 +08:00
|
|
|
}
|
|
|
|
|
2021-09-11 04:55:21 +08:00
|
|
|
variable "template_name" {}
|
|
|
|
|
|
|
|
variable "username" {}
|
2021-03-15 16:41:04 +08:00
|
|
|
|
2021-09-11 04:55:21 +08:00
|
|
|
variable "private_network_cidr" {}
|
2021-03-15 16:41:04 +08:00
|
|
|
|
|
|
|
variable "machines" {
|
|
|
|
description = "Cluster machines"
|
|
|
|
type = map(object({
|
2023-10-07 10:45:41 +08:00
|
|
|
node_type = string
|
|
|
|
plan = string
|
|
|
|
cpu = string
|
|
|
|
mem = string
|
|
|
|
disk_size = number
|
2024-06-26 16:42:21 +08:00
|
|
|
server_group : string
|
2021-09-11 04:55:21 +08:00
|
|
|
additional_disks = map(object({
|
|
|
|
size = number
|
|
|
|
tier = string
|
|
|
|
}))
|
2021-03-15 16:41:04 +08:00
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "ssh_public_keys" {
|
|
|
|
type = list(string)
|
|
|
|
}
|
2022-05-12 01:15:03 +08: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
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
2022-07-19 15:18:06 +08:00
|
|
|
variable "master_allowed_ports" {
|
|
|
|
type = list(object({
|
|
|
|
protocol = string
|
|
|
|
port_range_min = number
|
|
|
|
port_range_max = number
|
|
|
|
start_address = string
|
|
|
|
end_address = string
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "worker_allowed_ports" {
|
|
|
|
type = list(object({
|
|
|
|
protocol = string
|
|
|
|
port_range_min = number
|
|
|
|
port_range_max = number
|
|
|
|
start_address = string
|
|
|
|
end_address = string
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "firewall_default_deny_in" {
|
|
|
|
type = bool
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "firewall_default_deny_out" {
|
|
|
|
type = bool
|
|
|
|
}
|
|
|
|
|
2022-05-12 01:15:03 +08:00
|
|
|
variable "loadbalancer_enabled" {
|
|
|
|
type = bool
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "loadbalancer_plan" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2024-03-23 07:08:59 +08:00
|
|
|
variable "loadbalancer_outbound_proxy_protocol" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2022-05-12 01:15:03 +08:00
|
|
|
variable "loadbalancers" {
|
|
|
|
description = "Load balancers"
|
|
|
|
|
|
|
|
type = map(object({
|
|
|
|
port = number
|
2023-02-28 09:21:15 +08:00
|
|
|
target_port = number
|
2022-05-12 01:15:03 +08:00
|
|
|
backend_servers = list(string)
|
|
|
|
}))
|
|
|
|
}
|
2023-02-28 09:21:15 +08:00
|
|
|
|
|
|
|
variable "server_groups" {
|
|
|
|
description = "Server groups"
|
|
|
|
|
|
|
|
type = map(object({
|
2023-10-07 10:45:41 +08:00
|
|
|
anti_affinity_policy = string
|
2023-02-28 09:21:15 +08:00
|
|
|
}))
|
2024-05-22 02:17:05 +08:00
|
|
|
}
|