29 lines
1.3 KiB
HCL
29 lines
1.3 KiB
HCL
# K3s Server Configuration
|
|
server_ip = "192.168.1.100" # Replace with your server IP
|
|
worker_ips = [ # Replace with your worker IPs
|
|
"192.168.1.101",
|
|
"192.168.1.102"
|
|
]
|
|
ssh_user = "ubuntu" # Replace with your SSH username
|
|
ssh_private_key = "~/.ssh/id_rsa" # Path to your private SSH key
|
|
replace_url = "" # Optional: URL to replace in kubeconfig, leave empty to use server_ip
|
|
|
|
# Cluster Configuration
|
|
domain = "reg.benadis.org" # Your domain name
|
|
k3s_version = "v1.27.3+k3s1" # K3s version to install
|
|
k3s_channel = "stable" # K3s release channel
|
|
kubeconfig_path = "~/.kube/config" # Where to save kubeconfig
|
|
node_token_path = "/tmp/node-token" # Where to save node token
|
|
|
|
# Optional Features
|
|
enable_traefik_dashboard = false # Enable Traefik dashboard
|
|
enable_ssl = false # Enable SSL
|
|
ssl_cert_path = "" # Path to SSL certificate
|
|
ssl_key_path = "" # Path to SSL key
|
|
install_argocd = false # Install ArgoCD
|
|
enable_ssh_tunnel = false # Enable SSH tunneling
|
|
|
|
# Advanced Configuration
|
|
k3s_extra_server_args = "" # Extra args for K3s server
|
|
k3s_extra_agent_args = "" # Extra args for K3s agent
|