{"id":13702931,"url":"https://github.com/alexzimmer96/rancher-hcloud","last_synced_at":"2026-01-18T02:54:48.287Z","repository":{"id":37027169,"uuid":"312790447","full_name":"alexzimmer96/rancher-hcloud","owner":"alexzimmer96","description":"A Terraform script to deploy a highly available Rancher installation on Hetzner Cloud","archived":false,"fork":false,"pushed_at":"2022-06-18T20:08:58.000Z","size":17,"stargazers_count":52,"open_issues_count":8,"forks_count":26,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-13T10:37:46.428Z","etag":null,"topics":["hetzner-cloud","kubernetes","rancher","rke","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexzimmer96.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-14T10:05:30.000Z","updated_at":"2024-10-14T19:03:59.000Z","dependencies_parsed_at":"2022-08-18T17:33:06.533Z","dependency_job_id":null,"html_url":"https://github.com/alexzimmer96/rancher-hcloud","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzimmer96%2Francher-hcloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzimmer96%2Francher-hcloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzimmer96%2Francher-hcloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzimmer96%2Francher-hcloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexzimmer96","download_url":"https://codeload.github.com/alexzimmer96/rancher-hcloud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252458316,"owners_count":21751014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hetzner-cloud","kubernetes","rancher","rke","terraform"],"created_at":"2024-08-02T21:00:46.589Z","updated_at":"2026-01-18T02:54:48.275Z","avatar_url":"https://github.com/alexzimmer96.png","language":"HCL","funding_links":[],"categories":["Integrations"],"sub_categories":["Rust"],"readme":"# Rancher on Hetzner Cloud\n\nThis repository contains Terraform templates for deploying a highly available RKE cluster on Hetzner Cloud and installing Rancher into it.\nThe Rancher installation can be used to create more clusters using the [Hetzner UI Driver](https://github.com/mxschmitt/ui-driver-hetzner).\n\nPlease feel free to make contributions or use this for your own projects.\n\n## Running the Scripts\nFirst, take the terraform.tfvars.example and make your configuration.\nAfter this, you're ready to run.\n\n```bash\n# Initalizing the module\nterraform init\n\n# Creating the cluster\nterraform apply -target=module.cluster_init\n\n# Installing Cert-Manager and Rancher\nterraform apply -target=module.rancher_init\n\n# Create default node templates\nterraform apply -target=module.node_init\n```\n\n## Project Structure\n\nThis Project consists of three modules.\nThe `module-cluster-init` is for creating a basic RKE-Cluster on Hetzner Cloud, including server provisioning.\nThe `module-rancher-init` is for installing Cert-Manager and Rancher on top of your provisioned cluster.\nThe `module-node-init` creates Node Templates for Hetzner Cloud on your newly created Rancher instance.\n\n### Why is this divided into modules?\n\nFirst, there is a bug in the Terraform k8s-provider.\nThe existence of the kubeconfig-file is checked at planning phase.\nUnfortunately, that does not work because the cluster did not exist in planning phase.\n\nSecond, this gives you the possibility to create a DNS-Entry for the Load Balancer.\nThis step could be automated, but my personal domain is not at a DNS provider which has an API to automate this.\n\n## Next Steps\n\nAt the moment, there is no integration for the [hcloud-controller-manager](https://github.com/hetznercloud/hcloud-cloud-controller-manager) or their [CSI driver](https://github.com/hetznercloud/csi-driver).\nThis could be added to provide a tighter integration to the Hetzner Cloud Environment.\n\nAlso, i want to add a module to perform the installation of the [Hetzner UI Driver](https://github.com/mxschmitt/ui-driver-hetzner)\n\nMaybe some of this code can be used to create a more generic Terraform project to build production ready RKE clusters on Hetzner.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexzimmer96%2Francher-hcloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexzimmer96%2Francher-hcloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexzimmer96%2Francher-hcloud/lists"}