Skip to content

Commit 1084aca

Browse files
authored
Set kubelet node-ip for dual-role nodes (#205)
1 parent 946a664 commit 1084aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/cluster/host.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (h *Host) K0sInstallCommand() string {
196196
flags.AddUnlessExist(fmt.Sprintf(`--config "%s"`, h.K0sConfigPath()))
197197
}
198198

199-
if !h.IsController() && h.PrivateAddress != "" {
199+
if strings.HasSuffix(h.Role, "worker") && h.PrivateAddress != "" {
200200
// set worker's private address to --node-ip in --extra-kubelet-args
201201
var extra Flags
202202
if old := flags.GetValue("--kubelet-extra-args"); old != "" {

0 commit comments

Comments
 (0)