Skip to content

Commit

Permalink
tweaked kube.tf.example
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticaltech committed Aug 1, 2022
1 parent 0f3b27c commit 2388412
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
14 changes: 11 additions & 3 deletions kube.tf.example
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,14 @@ module "kube-hetzner" {
# You can enable cert-manager (installed by Helm behind the scenes) with the following flag, the default is "false".
# enable_cert_manager = true

# IP Addresses to use for the DNS Servers, set to an empty list to use the ones provided by Hetzner, defaults to ["1.1.1.1", " 1.0.0.1", "8.8.8.8"].
# For rancher installs, best to leave it as default.
# dns_servers = []

# When this is enabled, rather than the first node, all external traffic will be routed via a control-plane loadbalancer, allowing for high availability.
# The default is false.
# use_control_plane_lb = true

# You can enable Rancher (installed by Helm behind the scenes) with the following flag, the default is "false".
# When Rancher is enabled, it automatically installs cert-manager too, and it uses rancher's own self-signed certificates.
# See for options https://rancher.com/docs/rancher/v2.0-v2.4/en/installation/resources/advanced/helm2/helm-rancher/#choose-your-ssl-configuration
Expand All @@ -235,9 +243,9 @@ module "kube-hetzner" {
# IMPORTANT: Rancher's install is quite memory intensive, you will require at least 4GB if RAM, meaning cx21 server type (for your control plane).
# enable_rancher = true

# When Rancher is deployed, by default is uses the "stable" channel. But this can be customized.
# The allowed values are "stable", "latest", and "alpha".
# rancher_install_channel = "latest"
# When Rancher is deployed, by default is uses the "latest" channel. But this can be customized.
# The allowed values are "stable" or "latest".
# rancher_install_channel = "stable"

# Here you can set the Rancher hostname, the default is "rancher.example.com".
# It is a required value when using rancher, but up to you to point the DNS to it or not.
Expand Down
8 changes: 4 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ variable "enable_rancher" {

variable "rancher_install_channel" {
type = string
default = "stable"
default = "latest"
description = "Rancher install channel"

validation {
condition = contains(["stable", "latest", "alpha"], var.rancher_install_channel)
error_message = "The allowed values for the Rancher install channel are stable, latest, or alpha."
condition = contains(["stable", "latest"], var.rancher_install_channel)
error_message = "The allowed values for the Rancher install channel are stable or latest."
}
}

Expand Down Expand Up @@ -273,4 +273,4 @@ variable "extra_packages_to_install" {
type = list(string)
default = []
description = "A list of additional packages to install on nodes"
}
}

0 comments on commit 2388412

Please sign in to comment.