2021-02-03 15:32:28 +00:00
|
|
|
variable "zone" {
|
2021-01-23 04:37:39 +00:00
|
|
|
description = "The zone where to run the cluster"
|
|
|
|
}
|
|
|
|
|
2021-02-03 15:32:28 +00:00
|
|
|
variable "prefix" {
|
2021-01-23 04:37:39 +00:00
|
|
|
description = "Prefix for resource names"
|
|
|
|
default = "default"
|
|
|
|
}
|
|
|
|
|
2021-02-03 15:32:28 +00:00
|
|
|
variable "machines" {
|
2021-01-23 04:37:39 +00:00
|
|
|
description = "Cluster machines"
|
|
|
|
type = map(object({
|
|
|
|
node_type = string
|
|
|
|
size = string
|
|
|
|
boot_disk = object({
|
|
|
|
image_name = string
|
|
|
|
root_partition_size = number
|
|
|
|
ceph_partition_size = number
|
|
|
|
node_local_partition_size = number
|
|
|
|
})
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
2021-02-03 15:32:28 +00:00
|
|
|
variable "ssh_public_keys" {
|
|
|
|
description = "List of public SSH keys which are injected into the VMs."
|
|
|
|
type = list(string)
|
2021-01-23 04:37:39 +00:00
|
|
|
}
|
|
|
|
|
2021-02-03 15:32:28 +00:00
|
|
|
variable "ssh_whitelist" {
|
2021-01-23 04:37:39 +00:00
|
|
|
description = "List of IP ranges (CIDR) to whitelist for ssh"
|
2021-02-03 15:32:28 +00:00
|
|
|
type = list(string)
|
2021-01-23 04:37:39 +00:00
|
|
|
}
|
|
|
|
|
2021-02-03 15:32:28 +00:00
|
|
|
variable "api_server_whitelist" {
|
2021-01-23 04:37:39 +00:00
|
|
|
description = "List of IP ranges (CIDR) to whitelist for kubernetes api server"
|
2021-02-03 15:32:28 +00:00
|
|
|
type = list(string)
|
2021-01-23 04:37:39 +00:00
|
|
|
}
|
|
|
|
|
2021-02-03 15:32:28 +00:00
|
|
|
variable "nodeport_whitelist" {
|
2021-01-23 04:37:39 +00:00
|
|
|
description = "List of IP ranges (CIDR) to whitelist for kubernetes nodeports"
|
2021-02-03 15:32:28 +00:00
|
|
|
type = list(string)
|
2021-01-23 04:37:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "inventory_file" {
|
|
|
|
description = "Where to store the generated inventory file"
|
|
|
|
}
|