Script for create k3s cluster for dev or tests in Hetzner Cloud. SSH key you have add in Hetzner before run this script. Use SSH_KEY ENV for setup already added ssh. Otherwise will generate ssh-key
NAME=test
IMAGE=ubuntu-22.04
MASTER_TYPE=cx11
WORKER_TYPE=cx21
SSH_KEY=admin
WORKERS_NUM=1
K3S_VERSION=v1.24.3+k3s1
LOCATION=hel1
AUTOSCALER=0
NAME=test ./hcloud-k3sup.sh
Delete cluster
./hcloud-k3sup-delete.sh test
docker run -v ~/.ssh:/home/appuser/.ssh/ -e HCLOUD_TOKEN=abc -e NAME=test gawsoft/hcloud-k3sup:latest