Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gawsoftpl/hcloud-k3sup
- Owner: gawsoftpl
- Created: 2022-08-08T17:03:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-30T22:17:16.000Z (over 1 year ago)
- Last Synced: 2023-05-31T01:09:43.241Z (over 1 year ago)
- Language: Shell
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```