mirror of
https://github.com/rancher/rke.git
synced 2025-09-04 16:30:02 +00:00
Register controlplane node with taint
This commit is contained in:
@@ -328,6 +328,9 @@ func (c *Cluster) BuildKubeletProcess(host *hosts.Host, prefixPath string) v3.Pr
|
|||||||
"fail-swap-on": strconv.FormatBool(c.Services.Kubelet.FailSwapOn),
|
"fail-swap-on": strconv.FormatBool(c.Services.Kubelet.FailSwapOn),
|
||||||
"root-dir": path.Join(prefixPath, "/var/lib/kubelet"),
|
"root-dir": path.Join(prefixPath, "/var/lib/kubelet"),
|
||||||
}
|
}
|
||||||
|
if host.IsControl && !host.IsWorker {
|
||||||
|
CommandArgs["register-with-taints"] = unschedulableControlTaint
|
||||||
|
}
|
||||||
if host.Address != host.InternalAddress {
|
if host.Address != host.InternalAddress {
|
||||||
CommandArgs["node-ip"] = host.InternalAddress
|
CommandArgs["node-ip"] = host.InternalAddress
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user