Skip to content

Latest commit

 

History

History
 
 

hcloud

Hetzner Cloud Rancher Quickstart

Two single-node Kubernetes clusters will be created from two instances running Ubuntu 20.04 and Docker. Both instances will be accessible over SSH using the auto-generated SSH keys id_rsa and id_rsa.pub.

Requirements

Name Version
terraform >= 1.0.0
hcloud 1.33.2
local 2.4.0
tls 4.0.4

Providers

Name Version
hcloud 1.33.2
local 2.4.0
tls 4.0.4

Modules

Name Source Version
rancher_common ../rancher-common n/a

Resources

Name Type
hcloud_network.private resource
hcloud_network_subnet.private resource
hcloud_server.quickstart_node resource
hcloud_server.rancher_server resource
hcloud_ssh_key.quickstart_ssh_key resource
local_file.ssh_public_key_openssh resource
local_sensitive_file.ssh_private_key_pem resource
tls_private_key.global_key resource

Inputs

Name Description Type Default Required
hcloud_token Hetzner Cloud API token used to create infrastructure string n/a yes
rancher_server_admin_password Admin password to use for Rancher server bootstrap, min. 12 characters string n/a yes
cert_manager_version Version of cert-manager to install alongside Rancher (format: 0.0.0) string "1.11.0" no
hcloud_location Hetzner location used for all resources string "fsn1" no
instance_type Type of instance to be used for all instances string "cx21" no
network_cidr Network to create for private communication string "10.0.0.0/8" no
network_ip_range Subnet to create for private communication. Must be part of the CIDR defined in network_cidr. string "10.0.1.0/24" no
network_zone Zone to create the network in string "eu-central" no
prefix Prefix added to names of all resources string "quickstart" no
rancher_helm_repository The helm repository, where the Rancher helm chart is installed from string "https://releases.rancher.com/server-charts/latest" no
rancher_kubernetes_version Kubernetes version to use for Rancher server cluster string "v1.24.14+k3s1" no
rancher_version Rancher server version (format: v0.0.0) string "2.7.9" no
workload_kubernetes_version Kubernetes version to use for managed workload cluster string "v1.24.14+rke2r1" no

Outputs

Name Description
rancher_node_ip n/a
rancher_server_url n/a
workload_node_ip n/a