2024-11-19 22:23:38 +01:00
|
|
|
# TALOS
|
|
|
|
|
variable "talos_num_cp" {
|
|
|
|
|
type = number
|
|
|
|
|
description = "number of controlplan servers"
|
|
|
|
|
}
|
|
|
|
|
variable "talos_num_wk" {
|
|
|
|
|
type = number
|
|
|
|
|
description = "number of worker servers"
|
|
|
|
|
}
|
|
|
|
|
variable "talos_version" {
|
|
|
|
|
type = string
|
|
|
|
|
description = "talos image version"
|
|
|
|
|
}
|
2024-11-22 10:34:56 +01:00
|
|
|
|
2024-11-19 22:23:38 +01:00
|
|
|
variable "talos_cluster_name" {
|
|
|
|
|
type = string
|
|
|
|
|
description = "name of the cluster"
|
|
|
|
|
}
|
2024-11-22 10:34:56 +01:00
|
|
|
|
|
|
|
|
variable "kubernetes_version" {
|
|
|
|
|
type = string
|
|
|
|
|
description = "kubernetes image version"
|
|
|
|
|
default = ""
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-19 22:23:38 +01:00
|
|
|
variable "subdomain" {
|
|
|
|
|
type = string
|
|
|
|
|
description = "subdomain"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# HCLOUD
|
|
|
|
|
variable "hcloud_token" {
|
|
|
|
|
sensitive = true
|
|
|
|
|
}
|
|
|
|
|
variable "hcloud_datacenter" {
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
variable "hcloud_network_zone" {
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
variable "hcloud_server_type_cp" {
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
variable "hcloud_server_type_wk" {
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
variable "hcloud_private_network" {
|
|
|
|
|
type = object({
|
|
|
|
|
name = string
|
|
|
|
|
cidr = string
|
|
|
|
|
})
|
|
|
|
|
default = {
|
|
|
|
|
name = "talos-private"
|
|
|
|
|
cidr = "10.1.0.0/24"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-22 10:34:56 +01:00
|
|
|
variable "schedule_on_controlplane" {
|
|
|
|
|
type = bool
|
|
|
|
|
default = false
|
|
|
|
|
}
|
2024-11-19 22:23:38 +01:00
|
|
|
|
|
|
|
|
# cilium
|
|
|
|
|
variable "cilium_operator_replicas" {
|
|
|
|
|
type = number
|
|
|
|
|
default = 2
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# DNS
|
|
|
|
|
variable "dns_zone" {
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variable "kubeconfig" {
|
|
|
|
|
type = string
|
|
|
|
|
}
|