To use this tool, you will need a few things:
- A Hetzner Cloud account.
- A Hetzner Cloud token: To get this, create a project in the cloud console, then generate an API token with both read and write permissions (go to the sidebar > Security > API Tokens). Remember, you’ll only see the token once, so make sure to save it somewhere secure.
- kubectl and Helm installed, as these are necessary for installing components in the cluster and performing k3s upgrades.
brew install vitobotta/tap/hetzner_k3s
First, install these dependencies:
- libevent
- bdw-gc
- libyaml
- pcre
- gmp
wget https://github.com/vitobotta/hetzner-k3s/releases/download/v2.2.5/hetzner-k3s-macos-arm64
chmod +x hetzner-k3s-macos-arm64
sudo mv hetzner-k3s-macos-arm64 /usr/local/bin/hetzner-k3s
wget https://github.com/vitobotta/hetzner-k3s/releases/download/v2.2.5/hetzner-k3s-macos-amd64
chmod +x hetzner-k3s-macos-amd64
sudo mv hetzner-k3s-macos-amd64 /usr/local/bin/hetzner-k3s
wget https://github.com/vitobotta/hetzner-k3s/releases/download/v2.2.5/hetzner-k3s-linux-amd64
chmod +x hetzner-k3s-linux-amd64
sudo mv hetzner-k3s-linux-amd64 /usr/local/bin/hetzner-k3s
wget https://github.com/vitobotta/hetzner-k3s/releases/download/v2.2.5/hetzner-k3s-linux-arm64
chmod +x hetzner-k3s-linux-arm64
sudo mv hetzner-k3s-linux-arm64 /usr/local/bin/hetzner-k3s
For Windows, I recommend using the Linux binary with WSL.