k3s
cicdteam/k3s/hcloud
Kubernetes (k3s) Terraform installer for Hetzner Cloud
Kubernetes (k3s) Terraform installer for Hetzner Cloud This Terraform module creates a Kubernetes Cluster on Hetzner Cloud infrastructure running Ubuntu 20.04. The cluster is designed to take advantage of the Hetzner private network, and is equiped with Hetzner specific cluster enhancements. Cluster size and instance types are configurable through Terraform variables. Install Prerequisites Terraform must be installed Bash must be installed SSH should be installed and configured with an SSH Key and Agent (Recommended) Having kubectl installed is recommended Note that you'll need Terraform v0.12 or newer to run this project. Hetzner Cloud API Token Before running the project you'll have to create an access token for Terraform to connect to the Hetzner Cloud API. ``bash read -sp "Hetzner Clou
| Name | Type | Description | Default |
|---|---|---|---|
| ssh_keys | list | List of public ssh_key ids | required |
| hcloud_token | string | Hetzner cloud auth token | required |
| k3s_channel | string | "stable" | |
| node_groups | map(string) | Map of worker node groups, key is server_type, value is count of nodes in group | {
"cx21": 1
} |
| cluster_name | string | Cluster name (prefix for all resource names) | "hetzner" |
| datacenter | string | Hetzner datacenter where resources resides, hel1-dc2 (Helsinki 1 DC 2) or fsn1-d | "hel1-dc2" |
| image | string | Node boot image | "ubuntu-20.04" |
| master_type | string | Master node type (size) | "cx21" |
master_ipv4 — Public IP Address of the master nodenodes_ipv4 — Public IP Address of the worker nodes in groups