Files
apk-deploy-02/terraform/modules/k3s-install/variables.tf

70 lines
1.6 KiB
HCL

variable "server_ip" {
description = "IP address of the K3s server node"
type = string
}
variable "worker_ips" {
description = "List of IP addresses of the K3s worker nodes"
type = list(string)
default = []
}
variable "ssh_user" {
description = "SSH username for connecting to nodes"
type = string
default = "root"
}
variable "ssh_private_key" {
description = "Path to the SSH private key for authentication"
type = string
}
variable "replace_url" {
description = "URL to replace in the kubeconfig (usually the server_ip or domain name)"
type = string
default = ""
}
variable "k3s_version" {
description = "Version of K3s to install"
type = string
default = "v1.27.3+k3s1"
}
variable "k3s_channel" {
description = "Release channel of K3s to install (stable, latest, etc.)"
type = string
default = "stable"
}
variable "k3s_extra_server_args" {
description = "Extra arguments to pass to the K3s server"
type = string
default = ""
}
variable "k3s_extra_agent_args" {
description = "Extra arguments to pass to the K3s agent"
type = string
default = ""
}
variable "kubeconfig_path" {
description = "Path where to save the kubeconfig file locally"
type = string
default = "~/.kube/config"
}
variable "ssh_key_algorithm" {
description = "SSH key algorithm used"
type = string
default = "rsa"
}
variable "node_token_path" {
description = "Path where to save the node token locally"
type = string
default = "/tmp/node-token"
}