readme & backend.conf.example
This commit is contained in:
parent
468fd67b92
commit
a32800e2ef
2 changed files with 30 additions and 0 deletions
28
README.md
28
README.md
|
|
@ -1,2 +1,30 @@
|
|||
# hcloud-k8s
|
||||
|
||||
My Kubernetes cluster on Hetzner Cloud. Uses [hcloud-k8s/kubernetes/hcloud](https://registry.terraform.io/modules/hcloud-k8s/kubernetes/hcloud/latest) terraform module which runs Talos Linux (no SSH, API-only, immutable OS).
|
||||
|
||||
## What's in here
|
||||
|
||||
- 1 control plane + 2 workers (cx23, Helsinki)
|
||||
- Cilium CNI with WireGuard encryption
|
||||
- cert-manager for TLS
|
||||
- Traefik ingress
|
||||
- State stored in Hetzner Object Storage (S3)
|
||||
|
||||
## Setup
|
||||
|
||||
```bash
|
||||
cp terraform.tfvars.example terraform.tfvars
|
||||
# fill in your hcloud token
|
||||
|
||||
cp backend.conf.example backend.conf
|
||||
# fill in s3 access_key and secret_key
|
||||
|
||||
terraform init -backend-config=backend.conf
|
||||
terraform apply
|
||||
```
|
||||
|
||||
Kubeconfig gets written to `./kubeconfig` after apply.
|
||||
|
||||
## Scaling to HA
|
||||
|
||||
Change control plane `count` from 1 to 3 in `main.tf` and re-apply. Talos handles etcd member joining automatically.
|
||||
|
|
|
|||
2
backend.conf.example
Normal file
2
backend.conf.example
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
access_key = ""
|
||||
secret_key = ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue