Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 632 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 632 Bytes

Overview

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

Required env

NAME=test

Additional env

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

Example

NAME=test ./hcloud-k3sup.sh

Delete cluster

./hcloud-k3sup-delete.sh test

Docker

docker run -v ~/.ssh:/home/appuser/.ssh/ -e HCLOUD_TOKEN=abc -e NAME=test gawsoft/hcloud-k3sup:latest