Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gawsoftpl/hcloud-k3sup

Create k3s test or dev environment in Hetzner Cloud
https://github.com/gawsoftpl/hcloud-k3sup

Last synced: about 10 hours ago
JSON representation

Create k3s test or dev environment in Hetzner Cloud

Awesome Lists containing this project

README

        

# 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
```sh
NAME=test ./hcloud-k3sup.sh
```

Delete cluster
```sh
./hcloud-k3sup-delete.sh test
```

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