Add setting to allow_scheduling_on_control_plane

This commit is contained in:
Marco Nenciarini
2022-02-07 16:09:46 +01:00
parent ee7a0af8aa
commit 7e6eb731dd
6 changed files with 22 additions and 8 deletions

View File

@@ -55,10 +55,11 @@ resource "hcloud_server" "control_planes" {
# Generating k3s server config file
provisioner "file" {
content = templatefile("${path.module}/templates/server_config.yaml.tpl", {
first_control_plane_url = "https://${local.first_control_plane_network_ip}:6443"
node_ip = cidrhost(hcloud_network.k3s.ip_range, 3 + count.index)
token = random_password.k3s_token.result
node_name = self.name
first_control_plane_url = "https://${local.first_control_plane_network_ip}:6443"
node_ip = cidrhost(hcloud_network.k3s.ip_range, 3 + count.index)
token = random_password.k3s_token.result
node_name = self.name
allow_scheduling_on_control_plane = var.allow_scheduling_on_control_plane
})
destination = "/etc/rancher/k3s/config.yaml"