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.exampletoterraform.tfvarsand hand in the information - Take a look at the
variables.tfto check if you want to add more config - Run
terraform initandterraform plan. Check if everything seems ok - Run
terraform applyand let Terraform do the deployment - Get your kubeconfig by running
chmod +x ./cp-kubeconf.shfollowed 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
setupor 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