# kube-hetzner

> Optimized and maintenance-free Kubernetes on Hetzner Cloud in one command

Source: https://talira.ai/catalog/kube-hetzner-kf7d431y
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [infrastructure / kubernetes / provisioning](https://talira.ai/categories/infrastructure/kubernetes/provisioning), [devops / infrastructure as code](https://talira.ai/categories/devops/infrastructure-as-code), [infrastructure / kubernetes](https://talira.ai/categories/infrastructure/kubernetes)
- Platforms: linux, macos, cli[^5]
- Licence: MIT[^4]
- Pricing: Free and open source[^4][^5]
- Free tier: yes[^4][^5]
- Self-hostable: yes[^5]
- Sponsors: Hetzner

kube-hetzner is a community [Terraform](https://talira.ai/catalog/terraform-zdejdqmx.md) and [OpenTofu](https://talira.ai/catalog/opentofu-1ntqfn2x.md) module that builds a highly available [Kubernetes](https://talira.ai/catalog/kubernetes-ftsegx3m.md) cluster on [Hetzner Cloud](https://talira.ai/catalog/hetzner-cloud-4enwj8t9.md), running [K3s](https://talira.ai/catalog/k3s-mr4x8s65.md) (the default) or [RKE2](https://talira.ai/catalog/rke2-yttex8v2.md) on [openSUSE Leap Micro](https://talira.ai/catalog/opensuse-leap-micro-7k8jc8tm.md), an immutable OS with transactional updates and BTRFS rollback (MicroOS stays supported for existing clusters). A createkh script writes a kube.tf and builds the OS snapshots with [Packer](https://talira.ai/catalog/packer-4cs1wkxg.md); then you plan and apply. It wires in Hetzner's cloud controller manager and CSI driver, a choice of [Flannel](https://talira.ai/catalog/flannel-fzs48341.md), [Calico](https://talira.ai/catalog/calico-0n5tyxxq.md) or [Cilium](https://talira.ai/catalog/cilium-pk3603je.md), [Traefik](https://talira.ai/catalog/traefik-proxy-rzfqntzc.md), NGINX or [HAProxy](https://talira.ai/catalog/haproxy-19gvbtth.md) ingress, automatic OS updates with [Kured](https://talira.ai/catalog/kured-9kwz8znf.md)-coordinated reboots, K3s upgrades through [system-upgrade-controller](https://talira.ai/catalog/system-upgrade-controller-d1j5br3j.md), and [Cluster Autoscaler](https://talira.ai/catalog/cluster-autoscaler-2mcm47jv.md) nodepools. It isn't affiliated with Hetzner. MIT.

## Links

- GitHub: https://github.com/mysticaltech/terraform-hcloud-kube-hetzner
- Docs: https://github.com/mysticaltech/terraform-hcloud-kube-hetzner/blob/master/docs/index.md

## Problems it solves

- spin up a highly available Kubernetes cluster on Hetzner Cloud from one Terraform file
- run k3s on Hetzner with three control plane nodes and private networking without wiring it all by hand
- keep the OS on my Kubernetes nodes patched automatically, with rollback if an update breaks a node
- reboot Kubernetes nodes one at a time after OS updates without taking the cluster down
- upgrade k3s across a cluster automatically instead of SSHing into every node
- add Hetzner servers to a node pool automatically when pods can't be scheduled, and remove them when idle
- mix cheap Arm and x86 Hetzner servers in the same Kubernetes cluster
- choose Cilium, Calico or Flannel for pod networking on a Hetzner cluster
- run a fully private Kubernetes cluster on Hetzner behind a NAT router with no public node IPs
- spread Kubernetes control plane nodes across several Hetzner locations for resilience
- need RKE2 instead of k3s on Hetzner for a compliance-minded setup
- get Hetzner load balancers and block storage volumes working with Kubernetes out of the box
- reach my cluster's API and SSH only over Tailscale on Hetzner
- add a Hetzner dedicated Robot server to an existing cloud Kubernetes cluster
- manage my Hetzner Kubernetes cluster with OpenTofu instead of Terraform

## Features

- k3s (stable default) or RKE2 on openSUSE Leap Micro; MicroOS kept for existing clusters and explicit nodepools
- Automatic OS updates (transactional-update) with reboots coordinated by Kured; automatically_upgrade_os toggle
- Automatic k3s or RKE2 upgrades through Rancher's system-upgrade-controller; automatically_upgrade_kubernetes toggle
- Cluster Autoscaler nodepools (autoscaler_nodepools) next to static agent nodepools
- HA control plane with an odd quorum; multi-location pools
- Hetzner cloud controller manager and CSI driver
- CNI choice: Flannel, Calico or Cilium (XDP, Gateway API, WireGuard encryption)
- Ingress: Traefik (default), community Ingress-NGINX, HAProxy or none; Hetzner load balancer or Klipper
- Mixed x86 and Arm (CAX) nodes
- Private-only clusters with a NAT router; Tailscale node transport; dual-stack with Cilium
- Optional Longhorn, cert-manager, Rancher and embedded registry mirror (Spegel)
- Hetzner Robot dedicated servers can join the cluster
- Plan-time validation that rejects invalid variable combinations before anything is created
- createkh script that writes kube.tf and builds the Leap Micro snapshots with Packer
- Agent skills for Claude Code, Codex and Cursor: configuration help, v2 to v3 migration, upgrades, node debugging

## Limitations

- Doesn't build IPv6-only clusters on the standard private network: it's rejected because the module firewall doesn't open node-to-node public IPv6[^1][^2]
- Can't rotate the Kubernetes Secrets encryption key in place: rotation means a new cluster with a new key and a migration of workloads[^3]

## Trust

Overall: 0.66 out of 1.
Signals: maintenance 1.00, adoption 0.72, momentum 0.54, community 0.94, backing 0.15, extensibility 0.00.

- last commit 11 days ago
- 74 commits in the last 90 days
- latest release v3.2.1 2 months ago
- 4.0k GitHub stars
- 225 contributors
- accepts sponsorship (Github)
- sponsored by Hetzner

## Related

- Works with [Terraform](https://talira.ai/catalog/terraform-zdejdqmx.md)
- Works with [OpenTofu](https://talira.ai/catalog/opentofu-1ntqfn2x.md)
- Works with [K3s](https://talira.ai/catalog/k3s-mr4x8s65.md)
- Works with [Hetzner Cloud](https://talira.ai/catalog/hetzner-cloud-4enwj8t9.md)
- Works with [openSUSE Leap Micro](https://talira.ai/catalog/opensuse-leap-micro-7k8jc8tm.md)

## Alternatives

- [hetzner-k3s](https://talira.ai/catalog/hetzner-k3s-j3zwptt1.md): The easiest and fastest way to create production-ready Kubernetes clusters on Hetzner Cloud
- [kOps](https://talira.ai/catalog/kops-pbn3fvwv.md): The easiest way to get a production grade Kubernetes cluster up and running
- [Cluster API Provider Hetzner](https://talira.ai/catalog/cluster-api-provider-hetzner-09a8sex5.md): Manage Kubernetes clusters on Hetzner, fully declarative, Kubernetes-native and with self-healing
- [Syself Autopilot](https://talira.ai/catalog/syself-autopilot-m7x0hkv5.md): Fully managed Kubernetes on your own Hetzner servers
- [Edka](https://talira.ai/catalog/edka-gsd7zqc7.md): Kubernetes platform in your own cloud account for apps, databases and agents
- [Cloudfleet](https://talira.ai/catalog/cloudfleet-hev0pmt3.md): Managed Kubernetes from datacenter to cloud to edge

## Sources

[^1]: https://github.com/mysticaltech/terraform-hcloud-kube-hetzner/blob/master/docs/support-matrix.md (checked 19 Nov 2026)
[^2]: https://github.com/mysticaltech/terraform-hcloud-kube-hetzner/blob/master/docs/llms.md (checked 19 Nov 2026)
[^3]: https://github.com/mysticaltech/terraform-hcloud-kube-hetzner/blob/master/docs/operations.md (checked 19 Nov 2026)
[^4]: https://github.com/mysticaltech/terraform-hcloud-kube-hetzner/blob/master/LICENSE (checked 19 Nov 2026)
[^5]: https://github.com/mysticaltech/terraform-hcloud-kube-hetzner (checked 19 Nov 2026)
