bouwroute-devops/infra/modules/rancher/README.md

5.1 KiB

Rancher Common Terraform Module

The rancher-common module contains all resources that do not depend on a specific cloud provider. RKE, Kubernetes, Helm, and Rancher providers are used given the necessary information about the infrastructure created in a cloud provider.

Requirements

Name Version
terraform >= 1.0.0
helm 2.10.1
local 2.4.0
rancher2 3.0.0
ssh 2.6.0

Providers

Name Version
helm 2.10.1
local 2.4.0
rancher2.admin 3.0.0
rancher2.bootstrap 3.0.0
ssh 2.6.0

Modules

No modules.

Resources

Name Type
helm_release.cert_manager resource
helm_release.rancher_server resource
local_file.kube_config_server_yaml resource
local_file.kube_config_workload_yaml resource
rancher2_bootstrap.admin resource
rancher2_cluster_v2.quickstart_workload resource
ssh_resource.install_k3s resource
ssh_resource.retrieve_config resource

Inputs

Name Description Type Default Required
admin_password Admin password to use for Rancher server bootstrap, min. 12 characters string n/a yes
node_public_ip Public IP of compute node for Rancher cluster string n/a yes
node_username Username used for SSH access to the Rancher server cluster node string n/a yes
rancher_server_dns DNS host name of the Rancher server string n/a yes
ssh_private_key_pem Private key used for SSH access to the Rancher server cluster node string n/a yes
workload_cluster_name Name for created custom workload cluster string n/a yes
cert_manager_version Version of cert-manager to install alongside Rancher (format: 0.0.0) string "1.11.0" no
node_internal_ip Internal IP of compute node for Rancher cluster string "" 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
custom_cluster_command Docker command used to add a node to the quickstart cluster
custom_cluster_windows_command Docker command used to add a windows node to the quickstart cluster
rancher_url n/a