This module is a combination of terraform-hcloud-cluster and terraform-module-rke for provisioning RKE cluster in Hetzner Cloud. these addons will be installed and configured on the cluster:
Add the required configurations to your terraform config file and install module using command bellow:
terraform init
module "rke" {
source = "cktf/rke/hcloud"
name = "mycluster"
type = "k3s"
agent_token = "<REDACTED>"
server_token = "<REDACTED>"
public_key = "<REDACTED>"
private_key = "<REDACTED>"
hcloud_zone = "<ALB_ZONE>"
hcloud_token = "<HCLOUD_TOKEN>"
hcloud_network = "<HCLOUD_NETWORK>"
servers = {
1 = {
type = "cx11"
location = "fsn1"
}
2 = {
type = "cx11"
location = "fsn1"
}
3 = {
type = "cx11"
location = "fsn1"
}
}
agents = {
1 = {
type = "cx21"
location = "fsn1"
}
2 = {
type = "cx21"
location = "fsn1"
}
}
pools = {
1 = {
type = "cx21"
location = "fsn1"
min_size = 1
max_size = 5
}
}
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
This project is licensed under the MIT.
Copyright (c) KoLiBer (koliberr136a1@gmail.com)