Files
apk-deploy-02/terraform/infra/dev/variables.tf

106 lines
2.4 KiB
HCL

variable "server_ip" {
description = "IP address of the K3s server node"
type = string
}
variable "worker_ips" {
description = "List of IP addresses for 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 "domain" {
description = "Domain name for the cluster"
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 "kubeconfig_path" {
description = "Path where to save the kubeconfig file locally"
type = string
default = "~/.kube/config"
}
variable "node_token_path" {
description = "Path where to save the node token locally"
type = string
default = "/tmp/node-token"
}
variable "enable_traefik_dashboard" {
description = "Whether to enable the Traefik dashboard"
type = bool
default = false
}
variable "enable_ssl" {
description = "Whether to configure SSL for the cluster"
type = bool
default = false
}
variable "ssl_cert_path" {
description = "Path to SSL certificate"
type = string
default = ""
}
variable "ssl_key_path" {
description = "Path to SSL key"
type = string
default = ""
}
variable "install_argocd" {
description = "Whether to install ArgoCD for GitOps"
type = bool
default = false
}
variable "enable_ssh_tunnel" {
description = "Whether to enable SSH tunneling for local access"
type = bool
default = false
}
variable "k3s_extra_server_args" {
description = "Additional arguments to pass to the K3s server installation"
type = string
default = ""
}
variable "k3s_extra_agent_args" {
description = "Additional arguments to pass to the K3s agent installation"
type = string
default = ""
}