From d6fe4152c96dd408f8ebe4fb52dceddad0d7e215 Mon Sep 17 00:00:00 2001 From: phaer Date: Tue, 8 Feb 2022 09:05:36 +0100 Subject: [PATCH] re-add node-taints after rebase --- master.tf | 1 + servers.tf | 1 + 2 files changed, 2 insertions(+) diff --git a/master.tf b/master.tf index 98d2fc1..11c9557 100644 --- a/master.tf +++ b/master.tf @@ -69,6 +69,7 @@ resource "hcloud_server" "first_control_plane" { node-ip = local.first_control_plane_network_ip advertise-address = local.first_control_plane_network_ip token = random_password.k3s_token.result + node-taint = var.allow_scheduling_on_control_plane ? [] : [ "node-role.kubernetes.io/master:NoSchedule" ] }) destination = "/etc/rancher/k3s/config.yaml" diff --git a/servers.tf b/servers.tf index b933793..1545b9a 100644 --- a/servers.tf +++ b/servers.tf @@ -72,6 +72,7 @@ resource "hcloud_server" "control_planes" { advertise-address = cidrhost(hcloud_network.k3s.ip_range, 3 + count.index) tls-san = cidrhost(hcloud_network.k3s.ip_range, 3 + count.index) token = random_password.k3s_token.result + node-taint = var.allow_scheduling_on_control_plane ? [] : [ "node-role.kubernetes.io/master:NoSchedule" ] }) destination = "/etc/rancher/k3s/config.yaml"