2024-11-07 21:55:21 +00:00
|
|
|
variable "datacenter_name" {
|
|
|
|
type = string
|
|
|
|
default = "dco"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "datacenters" {
|
|
|
|
type = list(string)
|
|
|
|
default = [ "dco", "sto3", "sto4" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
# Cloud names in clouds.yaml file
|
|
|
|
variable "clouddco_name" {
|
|
|
|
type = string
|
|
|
|
default = "dco-matrixprod"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "cloudsto3_name" {
|
|
|
|
type = string
|
|
|
|
default = "sto3-matrixprod"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "cloudsto4_name" {
|
|
|
|
type = string
|
|
|
|
default = "sto4-matrixprod"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "keyname" {
|
|
|
|
type = string
|
2024-11-08 09:21:29 +00:00
|
|
|
default = "pettai-7431497"
|
2024-11-07 21:55:21 +00:00
|
|
|
}
|
|
|
|
variable "keynameworkers" {
|
|
|
|
type = string
|
2024-11-08 09:21:29 +00:00
|
|
|
default = "pettai-7431497"
|
2024-11-07 21:55:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Replicas per datacenter
|
|
|
|
variable "workerdcreplicas" {
|
|
|
|
default = "2"
|
|
|
|
}
|
|
|
|
|
|
|
|
# Replicas per datacenter
|
|
|
|
variable "controllerdcreplicas" {
|
|
|
|
default = "1"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "controller_instance_type" {
|
|
|
|
default = "b2.c2r4"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "worker_instance_type" {
|
|
|
|
default = "b2.c4r16"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "lb_instance_type" {
|
|
|
|
default = "b2.c2r4"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "mgmt_instance_type" {
|
|
|
|
default = "b2.c2r4"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "worker_name" {
|
|
|
|
default = "k8sw"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "controller_name" {
|
|
|
|
default = "k8sc"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "dns_suffix" {
|
|
|
|
default = "matrix.sunet.se"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "k8sports" {
|
|
|
|
default=[
|
|
|
|
{"16443" = "tcp"},
|
|
|
|
{"10250" = "tcp"},
|
|
|
|
{"10255" = "tcp"},
|
|
|
|
{"25000" = "tcp"},
|
|
|
|
{"12379" = "tcp"},
|
|
|
|
{"10257" = "tcp"},
|
|
|
|
{"10259" = "tcp"},
|
|
|
|
{"19001" = "tcp"},
|
|
|
|
{"4789" = "udp"},
|
|
|
|
{"51820" = "udp"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
variable jumphostv4-ips {
|
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
|
|
|
variable jumphostv6-ips {
|
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|