HeadlinesBriefing favicon HeadlinesBriefing.com

Cheap Self-Hosted Kubernetes on Hetzner

Hacker News •
×

Deploying a production-ready K3s cluster on Hetzner Cloud is made easier with the open-source Terraform project, terraform-hcloud-kube-hetzner. This approach balances ease of use, reliability, and cost-efficiency, appealing to those seeking an alternative to hyperscalers. Hetzner, a German infrastructure provider, offers high-performance hardware at predictable prices, focusing on core services and solid automation capabilities.

The kube-hetzner module simplifies cluster setup and maintenance, automating tasks like provisioning compute resources, configuring networking, and managing node pools. It integrates Hetzner's native tooling, enabling Kubernetes to manage resources such as load balancers and block storage. The project utilizes openSUSE's Micro OS, a stable, container-centric operating system with atomic updates and a read-only root filesystem for enhanced security and predictability.

At the cluster's core is K3s, Rancher's lightweight Kubernetes distribution, designed for constrained environments. It packages essential components into a single binary, simplifying operations for small to medium-sized clusters. The article outlines a cost-effective setup using CX23 control planes and CX33 workers, totaling approximately €26.97 per month for six machines, plus additional costs for load balancers and public IPs, bringing the total to around €58.03 per month with VAT. This offers a cost-effective alternative to managed Kubernetes services.