103 lines
1.9 KiB
HCL
103 lines
1.9 KiB
HCL
variable "control_plane_node_name" {
|
|
type = string
|
|
default = "debian"
|
|
}
|
|
|
|
variable "control_plane_node_labels" {
|
|
type = map(string)
|
|
default = {
|
|
"homelab.dev/node-role" = "control-plane"
|
|
"homelab.dev/storage" = "local"
|
|
"homelab.dev/workload-class" = "control-plane"
|
|
}
|
|
}
|
|
|
|
variable "control_plane_advertise_address" {
|
|
type = string
|
|
default = "192.168.100.68"
|
|
}
|
|
|
|
variable "pod_network_cidr" {
|
|
type = string
|
|
default = "10.244.0.0/16"
|
|
}
|
|
|
|
variable "kubeconfig_path" {
|
|
type = string
|
|
default = "/home/jv/.kube/config"
|
|
}
|
|
|
|
variable "kubeconfig_owner" {
|
|
type = string
|
|
default = "jv:jv"
|
|
}
|
|
|
|
variable "registry_endpoint" {
|
|
type = string
|
|
default = "192.168.100.68:30500"
|
|
}
|
|
|
|
variable "node_dns_servers" {
|
|
type = list(string)
|
|
default = [
|
|
"1.1.1.1",
|
|
"8.8.8.8",
|
|
]
|
|
}
|
|
|
|
variable "persistent_volume_dirs" {
|
|
type = list(string)
|
|
default = [
|
|
"/var/openebs/local/registry",
|
|
]
|
|
}
|
|
|
|
variable "worker_nodes" {
|
|
type = map(object({
|
|
host = string
|
|
user = string
|
|
node_name = string
|
|
ssh_key_path = string
|
|
}))
|
|
|
|
default = {}
|
|
}
|
|
|
|
variable "worker_node_labels" {
|
|
type = map(map(string))
|
|
|
|
default = {}
|
|
}
|
|
|
|
variable "tailscale_nodeport_access" {
|
|
type = object({
|
|
enabled = bool
|
|
worker_key = string
|
|
peer_ip = string
|
|
node_tailscale_ip = string
|
|
pod_cidr = string
|
|
node_port = number
|
|
target_port = number
|
|
})
|
|
|
|
default = {
|
|
enabled = true
|
|
worker_key = "raspberrypi"
|
|
peer_ip = "100.118.255.19"
|
|
node_tailscale_ip = "100.77.80.72"
|
|
pod_cidr = "10.244.0.0/16"
|
|
node_port = 30080
|
|
target_port = 8080
|
|
}
|
|
}
|
|
|
|
variable "tailscale_nodeport_extra_ports" {
|
|
type = list(number)
|
|
default = [30081]
|
|
}
|
|
|
|
variable "tailscale_nodeport_extra_target_ports" {
|
|
type = list(number)
|
|
default = []
|
|
}
|