2024-05-22 17:24:59 +00:00
|
|
|
variable "datacenter_name" {
|
|
|
|
type = string
|
|
|
|
default = "dco"
|
|
|
|
}
|
|
|
|
|
2024-10-18 10:45:46 +00:00
|
|
|
variable "datacenters" {
|
|
|
|
type = list(string)
|
|
|
|
default = [ "dco", "sto3", "sto4" ]
|
|
|
|
}
|
|
|
|
|
2024-10-17 22:25:01 +00:00
|
|
|
# Cloud names in clouds.yaml file
|
|
|
|
variable "clouddco_name" {
|
|
|
|
type = string
|
|
|
|
default = "dco-matrixtest"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "cloudsto3_name" {
|
|
|
|
type = string
|
|
|
|
default = "sto3-matrixtest"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "cloudsto4_name" {
|
|
|
|
type = string
|
|
|
|
default = "sto4-matrixtest"
|
|
|
|
}
|
|
|
|
|
2024-05-22 17:24:59 +00:00
|
|
|
variable "keyname" {
|
|
|
|
type = string
|
|
|
|
default = "manderssonpub"
|
|
|
|
}
|
2024-10-15 13:38:44 +00:00
|
|
|
variable "keynameworkers" {
|
|
|
|
type = string
|
|
|
|
default = "manderssonpub3"
|
|
|
|
}
|
2024-05-22 17:24:59 +00:00
|
|
|
|
|
|
|
variable "worker_instance_count" {
|
2024-10-21 13:09:34 +00:00
|
|
|
default = "0"
|
2024-05-22 17:24:59 +00:00
|
|
|
}
|
2024-10-18 11:59:55 +00:00
|
|
|
|
|
|
|
# Replicas per datacenter
|
|
|
|
variable "workerdcreplicas" {
|
|
|
|
default = "2"
|
|
|
|
}
|
|
|
|
|
2024-10-21 15:40:24 +00:00
|
|
|
# Replicas per datacenter
|
|
|
|
variable "controllerdcreplicas" {
|
2024-10-22 05:13:26 +00:00
|
|
|
default = "1"
|
2024-10-21 15:40:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-05-22 17:24:59 +00:00
|
|
|
variable "controller_instance_count" {
|
2024-10-22 14:24:49 +00:00
|
|
|
default = "1"
|
2024-05-22 17:24:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "controller_instance_type" {
|
|
|
|
default = "b2.c2r4"
|
|
|
|
}
|
2024-05-23 08:47:29 +00:00
|
|
|
|
2024-05-22 17:24:59 +00:00
|
|
|
variable "worker_instance_type" {
|
|
|
|
default = "b2.c4r16"
|
|
|
|
}
|
2024-05-23 08:47:29 +00:00
|
|
|
|
2024-05-22 17:24:59 +00:00
|
|
|
variable "worker_name" {
|
2024-05-23 08:47:29 +00:00
|
|
|
default = "k8sw"
|
2024-05-22 17:24:59 +00:00
|
|
|
}
|
2024-05-23 08:47:29 +00:00
|
|
|
|
2024-05-22 17:24:59 +00:00
|
|
|
variable "controller_name" {
|
2024-05-23 08:47:29 +00:00
|
|
|
default = "k8sc"
|
2024-05-22 17:24:59 +00:00
|
|
|
}
|
2024-05-23 08:47:29 +00:00
|
|
|
|
2024-05-22 17:24:59 +00:00
|
|
|
variable "dns_suffix" {
|
2024-05-23 09:59:39 +00:00
|
|
|
default = "matrix.test.sunet.se"
|
2024-05-22 17:24:59 +00:00
|
|
|
}
|
2024-05-23 11:40:02 +00:00
|
|
|
|
|
|
|
variable "cloud_name" {
|
|
|
|
default="dco-matrixtest"
|
|
|
|
}
|
2024-10-17 06:08:33 +00:00
|
|
|
|
|
|
|
variable "cloud2_name" {
|
|
|
|
default="dco-matrixtest"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "cloud3_name" {
|
|
|
|
default="dco-matrixtest"
|
|
|
|
}
|
2024-10-17 22:25:01 +00:00
|
|
|
|
|
|
|
variable "k8sports" {
|
|
|
|
default=[
|
|
|
|
{"16443" = "tcp"},
|
|
|
|
{"10250" = "tcp"},
|
|
|
|
{"10255" = "tcp"},
|
|
|
|
{"25000" = "tcp"},
|
|
|
|
{"12379" = "tcp"},
|
|
|
|
{"10257" = "tcp"},
|
|
|
|
{"10259" = "tcp"},
|
|
|
|
{"4789" = "udp"},
|
|
|
|
{"51820" = "udp"}
|
|
|
|
]
|
|
|
|
}
|
2024-10-18 15:02:29 +00:00
|
|
|
|
|
|
|
variable jumphostv4-ips {
|
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
|
|
|
variable jumphostv6-ips {
|
|
|
|
type = list(string)
|
|
|
|
default = []
|
|
|
|
}
|