Terraform module for creating and managing Kubernetes clusters with RKE on Hetzner Cloud
A Terraform module refers to a self-contained package of Terraform configurations that are managed as a group. For more information about modules refer to the Terraform documentation.
This module currently supports only Terraform 0.13
.
A Kubernetes cluster can be provisioned by creating a main.tf
file in an empty directory with the following content, do not forget to configure all the variables - they are all required.
module "rke-kubernetes" {
source = "vojtechmares/rke-kubernetes/hcloud"
version = "0.1.0"
# insert the 12 required variables here
}
output "kubeconfig" {
value = module.rke-kubernetes.kube_config_yaml
sensitive = true
}
output "lbipv4" {
value = module.rke-kubernetes.load_balancer_ipv4
}
Once you have the module configured, you can apply it by running:
terraform init
terraform apply