# mysticaltech/terraform-hcloud-kube-hetzner

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/mysticaltech-terraform-hcloud-kube-hetzner).**

3,690 stars · 535 forks · HCL · mit

## Links

- GitHub: https://github.com/mysticaltech/terraform-hcloud-kube-hetzner
- awesome-repositories: https://awesome-repositories.com/repository/mysticaltech-terraform-hcloud-kube-hetzner.md

## Topics

`hcloud` `hetzner-cloud` `k3s` `k8s` `kubernetes` `terraform`

## Description

This project is a Terraform Kubernetes provisioner and K3s cluster deployer designed to automate the installation and configuration of lightweight container orchestration on Hetzner Cloud infrastructure. It functions as a Hetzner Cloud infrastructure module, using declarative configuration to manage the full lifecycle of virtual machines, private networks, and load balancers.

The orchestrator focuses on high availability by deploying redundant control planes and worker nodes across multiple physical data centers to ensure service continuity. It incorporates a cloud network security manager to implement dual-stack private networking and perimeter firewall rules that restrict traffic to specific ports and protocols.

The project covers broader infrastructure capabilities including block-storage volume attachment for data persistence, cattle-based node scaling to adjust resource capacity, and the generation of system manifests using HCL templates. It also handles the provisioning of load balancers to route external traffic to internal services.

## Tags

### DevOps & Infrastructure

- [Declarative Infrastructure Provisioning](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure-deployment/managed-infrastructure-deployment/infrastructure-deployment-provisioning/declarative-infrastructure-provisioning.md) — Uses declarative Terraform configurations to automate the provisioning of cloud servers, networks, and load balancers.
- [Container Cluster Deployments](https://awesome-repositories.com/f/devops-infrastructure/container-cluster-deployments.md) — Provides an automation framework for installing and configuring lightweight K3s container orchestration across cloud nodes.
- [Cloud Infrastructure Automation](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure-automation.md) — Manages the full lifecycle of cloud servers, networking, and load balancers through a declarative IaC workflow.
- [Hetzner VPS Provisioners](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure/networking-connectivity/virtual-private-clouds/hetzner-vps-provisioners.md) — Provides reusable components for managing virtual machines, private networks, and load balancers within Hetzner Cloud.
- [Cloud Network Security Groups](https://awesome-repositories.com/f/devops-infrastructure/cloud-network-security-groups.md) — Configures private networks and firewall rules to protect containerized workloads from external threats.
- [Cloud Provisioning](https://awesome-repositories.com/f/devops-infrastructure/cloud-provisioning.md) — Provisions a lightweight K3s container orchestration environment across various cloud node architectures. ([source](https://cdn.jsdelivr.net/gh/mysticaltech/terraform-hcloud-kube-hetzner@master/README.md))
- [Dual-Stack Networking](https://awesome-repositories.com/f/devops-infrastructure/container-orchestration/networking/dual-stack-networking.md) — Configures simultaneous IPv4 and IPv6 internal addressing for secure node communication on private cloud networks.
- [High Availability Cluster Deployments](https://awesome-repositories.com/f/devops-infrastructure/helm-chart-management/high-availability-cluster-deployments.md) — Supports redundant control planes and agent nodes deployed across multiple zones for fault tolerance. ([source](https://cdn.jsdelivr.net/gh/mysticaltech/terraform-hcloud-kube-hetzner@master/README.md))
- [Hetzner Kubernetes Provisioners](https://awesome-repositories.com/f/devops-infrastructure/hetzner-kubernetes-provisioners.md) — Automates the installation of K3s clusters on Hetzner Cloud using Terraform for environment setup.
- [High Availability Clustering](https://awesome-repositories.com/f/devops-infrastructure/high-availability-clustering.md) — Implements redundant control planes and worker nodes across multiple data centers to ensure continuous service availability.
- [Cloud Infrastructure Provisioners](https://awesome-repositories.com/f/devops-infrastructure/kubernetes-provisioners/cloud-infrastructure-provisioners.md) — Uses Terraform to provision Kubernetes clusters specifically on Hetzner Cloud infrastructure.
- [Multi-Zone Deployment Tools](https://awesome-repositories.com/f/devops-infrastructure/multi-zone-deployment-tools.md) — Distributes control planes and worker nodes across multiple physical data centers to ensure high availability.
- [Cluster Node Management](https://awesome-repositories.com/f/devops-infrastructure/cluster-node-management.md) — Allows for manual or automatic adjustment of active cluster node counts to meet resource demands. ([source](https://cdn.jsdelivr.net/gh/mysticaltech/terraform-hcloud-kube-hetzner@master/README.md))
- [Cattle-Based Node Scaling](https://awesome-repositories.com/f/devops-infrastructure/infrastructure-scaling/role-based-scaling/cattle-based-node-scaling.md) — Implements a scaling model where worker nodes are treated as replaceable resources based on demand.
- [Manifest Generation](https://awesome-repositories.com/f/devops-infrastructure/kubernetes-manifest-management/manifest-generation.md) — Generates Kubernetes manifests and system configurations using HCL templates to inject dynamic environment variables.

### Security & Cryptography

- [Firewalls](https://awesome-repositories.com/f/security-cryptography/firewalls.md) — Implements cloud-level firewall rules to restrict external traffic to specific ports and protocols.
- [Network Access Controls](https://awesome-repositories.com/f/security-cryptography/network-access-controls.md) — Implements perimeter firewall rules to restrict incoming traffic and protect the internal cluster environment. ([source](https://cdn.jsdelivr.net/gh/mysticaltech/terraform-hcloud-kube-hetzner@master/README.md))

### Networking & Communication

- [Cluster Network Orchestration](https://awesome-repositories.com/f/networking-communication/cluster-network-orchestration.md) — Configures cluster-wide network settings including dual-stack private networking and node-to-node communication. ([source](https://cdn.jsdelivr.net/gh/mysticaltech/terraform-hcloud-kube-hetzner@master/README.md))
- [Load Balancers](https://awesome-repositories.com/f/networking-communication/load-balancers.md) — Provisions load balancers and ingress controllers to route external traffic to internal cluster services. ([source](https://cdn.jsdelivr.net/gh/mysticaltech/terraform-hcloud-kube-hetzner@master/README.md))

### Software Engineering & Architecture

- [Automated System Upgrades](https://awesome-repositories.com/f/software-engineering-architecture/contract-upgradeability/upgrade-validation/automated-system-upgrades.md) — Automates operating system and cluster binary updates with coordinated reboots and automatic rollbacks. ([source](https://cdn.jsdelivr.net/gh/mysticaltech/terraform-hcloud-kube-hetzner@master/README.md))
