Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 1.43 KB

README.md

File metadata and controls

62 lines (48 loc) · 1.43 KB

Terraform Module RKE

pipeline release license

Terraform alternative to k3sup, which supports both K3s and RKE2

Installation

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

terraform init

Usage

module "rke" {
  source = "cktf/rke/module"

  type         = "k3s"
  server_ip    = "192.168.100.10"
  agent_token  = "<REDACTED>"
  server_token = "<REDACTED>"

  servers = {
    1 = {
      connection = {
        type     = "ssh"
        host     = "192.168.100.10"
        port     = 22
        user     = "root"
        password = "pass"
      }
    }
  }
  agents = {
    1 = {
      connection = {
        type     = "ssh"
        host     = "192.168.100.11"
        port     = 22
        user     = "root"
        password = "pass"
      }
    }
  }
}

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)