A CLI tool that rapidly creates and manages production-ready Kubernetes clusters on Hetzner Cloud using the lightweight k3s distribution.
The easiest and fastest way to create and manage Kubernetes clusters in Hetzner Cloud using the lightweight distribution k3s by Rancher.
This tool is designed for DevOps engineers and platform architects who want to quickly deploy and manage scalable, highly available Kubernetes clusters on Hetzner Cloud. It simplifies infrastructure provisioning, Kubernetes deployment, and cluster management, making it ideal for teams seeking efficient cloud-native infrastructure automation.
Users should have a Hetzner Cloud account with API access configured before using this tool. The tool is optimized for k3s, which is suitable for lightweight and resource-constrained environments. Large clusters may require consideration of Hetzner's private network instance limits. Always review and configure firewall and network settings to maintain cluster security.
Clone the repository from GitHub: git clone https://github.com/vitobotta/hetzner-k3s.git
Navigate into the cloned directory: cd hetzner-k3s
Follow the documentation for setting up a cluster: see docs/Setting up a cluster.md
Ensure you have access to Hetzner Cloud and necessary API credentials
Install any required dependencies as per the documentation (not explicitly listed in README)
hetzner-k3s cluster create
Creates a new highly available k3s Kubernetes cluster on Hetzner Cloud with default settings.
hetzner-k3s cluster delete
Deletes an existing Kubernetes cluster and all associated infrastructure resources.
hetzner-k3s cluster list
Lists all Kubernetes clusters managed by hetzner-k3s.
hetzner-k3s node add
Adds worker nodes to an existing Kubernetes cluster.
hetzner-k3s node remove
Removes nodes from a Kubernetes cluster.