Skip to content
This repository was archived by the owner on Jul 26, 2025. It is now read-only.

Repository files navigation

Terraform HCloud RKE

pipeline release license

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:

Installation

Add the required configurations to your terraform config file and install module using command bellow:

terraform init

Usage

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
    }
  }
}

Contributing

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.

License

This project is licensed under the MIT.
Copyright (c) KoLiBer (koliberr136a1@gmail.com)

About

Terraform HCloud RKE Module

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages