96 lines
1.8 KiB
HCL
96 lines
1.8 KiB
HCL
variable "control_plane_node_name" {
|
|
type = string
|
|
default = "debian"
|
|
}
|
|
|
|
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",
|
|
"/var/openebs/local/gitea",
|
|
]
|
|
}
|
|
|
|
variable "worker_nodes" {
|
|
type = map(object({
|
|
host = string
|
|
user = string
|
|
node_name = string
|
|
ssh_key_path = string
|
|
}))
|
|
|
|
default = {
|
|
raspberrypi = {
|
|
host = "192.168.100.89"
|
|
user = "jv"
|
|
node_name = "raspberry"
|
|
ssh_key_path = "/home/jv/.ssh/id_ed25519"
|
|
}
|
|
}
|
|
}
|
|
|
|
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 = 80
|
|
}
|
|
}
|
|
|
|
variable "tailscale_nodeport_extra_ports" {
|
|
type = list(number)
|
|
default = [30081, 30300]
|
|
}
|
|
|
|
variable "tailscale_nodeport_extra_target_ports" {
|
|
type = list(number)
|
|
default = [3000]
|
|
}
|