From 8ee732e694ee451a13394d5a531ec90f12b2b6f2 Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Mon, 7 Feb 2022 12:10:22 +0100 Subject: [PATCH] Taint control-plane nodes with node-role.kubernetes.io/master:NoSchedule --- templates/master_config.yaml.tpl | 4 +++- templates/server_config.yaml.tpl | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/master_config.yaml.tpl b/templates/master_config.yaml.tpl index bef3ff1..d0fb6f9 100644 --- a/templates/master_config.yaml.tpl +++ b/templates/master_config.yaml.tpl @@ -8,4 +8,6 @@ advertise-address: ${node_ip} tls-san: ${node_ip} kubelet-arg: "cloud-provider=external" token: ${token} -node-name: ${node_name} \ No newline at end of file +node-name: ${node_name} +node-taint: +- node-role.kubernetes.io/master:NoSchedule diff --git a/templates/server_config.yaml.tpl b/templates/server_config.yaml.tpl index eafbe99..270c59f 100644 --- a/templates/server_config.yaml.tpl +++ b/templates/server_config.yaml.tpl @@ -8,4 +8,6 @@ advertise-address: ${node_ip} tls-san: ${node_ip} kubelet-arg: "cloud-provider=external" token: ${token} -node-name: ${node_name} \ No newline at end of file +node-name: ${node_name} +node-taint: +- node-role.kubernetes.io/master:NoSchedule