This repository contains a Terraform template to spin up a k3s cluster on Rancher. It also provides a Helm-Chart which contains two Subcharts for installing the hcloud-cloud-controller-manager and the hcloud-csi-driver. Thanks to Matthias Lohr for providing the Helm Charts.
- Copy the
terraform.tfvars.example
toterraform.tfvars
and hand in the information - Take a look at the
variables.tf
to check if you want to add more config - Run
terraform init
andterraform plan
. Check if everything seems ok - Run
terraform apply
and let Terraform do the deployment - Get your kubeconfig by running
chmod +x ./cp-kubeconf.sh
followed by./cp-kubeconf.sh <IP Adress of your Management Node>
The attached Helm Chart can install all necessary components to provide a tight integration with Hetzner Cloud.
- Initialize the submodules by running
git submodule update --init --recursive
- Install the Helm-Chart, using e.g.
helm --kubeconfig ./kube_config.yaml upgrade --namespace kube-system --install -f ./controller-values.yaml setup ./controller
- If you choose another command for helm installation, please name your Helm deployment
setup
or change the variablehcloud-csi-driver.csiDriver.secret.name
- If you choose another command for helm installation, please name your Helm deployment
- Check if all components get up