https://github.com/jedevc/hcloud_kube
Bootstrap a basic kubernetes cluster on Hetzner cloud! :cloud::confetti_ball:
https://github.com/jedevc/hcloud_kube
cloud hetzner kubernetes
Last synced: 3 months ago
JSON representation
Bootstrap a basic kubernetes cluster on Hetzner cloud! :cloud::confetti_ball:
- Host: GitHub
- URL: https://github.com/jedevc/hcloud_kube
- Owner: jedevc
- License: unlicense
- Created: 2020-06-27T18:51:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-02T16:53:42.000Z (about 6 years ago)
- Last Synced: 2025-10-09T11:09:17.073Z (10 months ago)
- Topics: cloud, hetzner, kubernetes
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hcloud_kube
A simple collection of scripts for bootstrapping a simply k8s cluster on
[Hetzner Cloud](https://www.hetzner.com/cloud).
## Dependencies
You'll need:
- [hcloud](https://github.com/hetznercloud/cli)
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
- Other pretty standard linux utils (Bash, SSH, etc)
## Quickstart
Create a kubernetes cluster with 2 CX21 nodes:
```bash
$ export HCLOUD_TOKEN=
$ ./hcloud_kube -t cx21 -n 2
```
## Usage
1. Create a new project
2. Create a new API token in the project
3. Create a local environment variable `HCLOUD_TOKEN` with the value of the token.
```bash
$ export HCLOUD_TOKEN=
```
4. Run the hcloud script
```bash
$ ./hcloud_kube
```
5. You can then copy the kube admin config
```bash
$ cp /tmp/hcloud_kube/admin.conf ~/.kube/config
```
6. You probably also want to save the generated ssh keys (in case you want to
ssh in later)
```bash
$ cp /tmp/hcloud_kube/provision_key* ~
```
## Configuration
Command line options
- `-t TYPE` (default: `cx21`)
The hetzner instance type for each node.
- `-n COUNT` (default: `0`)
The number of hetzner workers to provision.
If set to 0, the master node is tainted to accept pods.
For additional configuration, dive in, and edit the script - it's meant to be
built upon.
## References
https://community.hetzner.com/tutorials/install-kubernetes-cluster
## License
Because this tool is short and sweet, it is hereby released into the public
domain. Do whatever you want.