Terraform alternative to k3sup, which supports both K3s and RKE2
Add the required configurations to your terraform config file and install module using command bellow:
terraform init
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"
}
}
}
}
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)