Skip to content

Create k3s test or dev environment in Hetzner Cloud

Notifications You must be signed in to change notification settings

gawsoftpl/hcloud-k3sup

Repository files navigation

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 

About

Create k3s test or dev environment in Hetzner Cloud

Resources

Stars

Watchers

Forks

Packages

No packages published