Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Terraform module for creating and managing Kubernetes clusters with RKE on Hetzner Cloud

License

Notifications You must be signed in to change notification settings

vojtechmares-archives/terraform-hcloud-rke-kubernetes

Repository files navigation

terraform-hcloud-rke-kubernetes

Terraform module for creating and managing Kubernetes clusters with RKE on Hetzner Cloud

What is a Terraform module

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.

How do you use this module

This module currently supports only Terraform 0.13.

Kubernetes cluster provisioning

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

About

Terraform module for creating and managing Kubernetes clusters with RKE on Hetzner Cloud

Resources

License

Stars

Watchers

Forks

Languages