From a75e3d693cd4395d74b2f92da47b1c1e17124342 Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Fri, 22 Jun 2018 08:35:52 +0200 Subject: [PATCH] Register controlplane node with taint --- cluster/plan.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cluster/plan.go b/cluster/plan.go index 5a750484..745a401a 100644 --- a/cluster/plan.go +++ b/cluster/plan.go @@ -328,6 +328,9 @@ func (c *Cluster) BuildKubeletProcess(host *hosts.Host, prefixPath string) v3.Pr "fail-swap-on": strconv.FormatBool(c.Services.Kubelet.FailSwapOn), "root-dir": path.Join(prefixPath, "/var/lib/kubelet"), } + if host.IsControl && !host.IsWorker { + CommandArgs["register-with-taints"] = unschedulableControlTaint + } if host.Address != host.InternalAddress { CommandArgs["node-ip"] = host.InternalAddress }