feat: Add HA Kubernetes cluster with Terraform + Ansible
Some checks failed
Terraform / Validate (push) Failing after 17s
Terraform / Plan (push) Has been skipped
Terraform / Apply (push) Has been skipped

- 3x CX23 control plane nodes (HA)
- 4x CX33 worker nodes
- k3s with embedded etcd
- Hetzner CCM for load balancers
- Gitea CI/CD workflows
- Backblaze B2 for Terraform state
This commit is contained in:
2026-02-28 20:24:55 +00:00
parent 3e8eb072b5
commit 3b3084b997
27 changed files with 1324 additions and 0 deletions

23
terraform.tfvars.example Normal file
View File

@@ -0,0 +1,23 @@
hcloud_token = "your-hetzner-cloud-api-token-here"
ssh_public_key = "~/.ssh/hetzner_k8s.pub"
ssh_private_key = "~/.ssh/hetzner_k8s"
s3_access_key = "your-backblaze-key-id"
s3_secret_key = "your-backblaze-application-key"
s3_endpoint = "https://s3.eu-central-003.backblazeb2.com"
s3_bucket = "k8s-terraform-state"
cluster_name = "k8s-prod"
control_plane_count = 3
control_plane_type = "cx23"
worker_count = 4
worker_type = "cx33"
location = "fsn1"
allowed_ssh_ips = ["0.0.0.0/0"]
allowed_api_ips = ["0.0.0.0/0"]