Skip to content

pastis-hosting/terraform-hcloud-rke

 
 

Repository files navigation

Terraform HCloud RKE

pipeline release license

RKE is a Terraform module useful for bootstraping HA kubernetes clusters using k3s and rke2 on HCloud

These modules 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"
  network_id   = module.network_hcloud.network_id
  hcloud_token = "<HCLOUD_TOKEN>"

  masters = {
    1 = {
      type     = "cx11"
      location = "fsn1"
      tags     = {}
    }
  }

  node_pools = {
    pool1 = {
      type     = "cx11"
      location = "fsn1"
      min_size = 3
      max_size = 5
    }
    pool2 = {
      type     = "cx11"
      location = "fsn1"
      min_size = 2
      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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 69.0%
  • Shell 31.0%