8000 GitHub - cktf/terraform-hcloud-rke: Terraform HCloud RKE Module
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cktf/terraform-hcloud-rke

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

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0