To set up a k3s cluster, the following mandatory configuration fields must be provided. These settings handle authentication with Hetzner, cluster identification, SSH access, and node pool definitions.
# Mandatory Cluster Configuration
hetzner_token: "<your_hetzner_token>"
cluster_name: "<your_cluster_name>"
public_ssh_key_path: "/path/to/id_rsa.pub"
private_ssh_key_path: "/path/to/id_rsa"
masters_pool:
# Define instance type, count, and location
instance_type: "cx22"
count: 1
location: "fsn1"
# Optional overrides for mandatory fields
kubeconfig_path: "./kubeconfig" # Default: ./kubeconfig
k3s_version: "v1.29.2+k3s1" # Default: v1.29.2+k3s1
ssh_allowed_networks: ["0.0.0.0/0"] # Default: ["0.0.0.0/0"]
api_allowed_networks: ["0.0.0.0/0"] # Default: ["0.0.0.0/0"]