Skip to content

Commit 464d425

Browse files
committed
assign proper internal IPs for nodes
1 parent f3d5c57 commit 464d425

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/minikube/bootstrapper/bsutil/kubelet.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,8 @@ func extraKubeletOpts(mc config.ClusterConfig, nc config.Node, r cruntime.Manage
5454
if k8s.NetworkPlugin != "" {
5555
extraOpts["network-plugin"] = k8s.NetworkPlugin
5656
}
57-
cp, err := config.PrimaryControlPlane(&mc)
58-
if err != nil {
59-
return nil, errors.Wrap(err, "getting master node")
60-
}
6157
if _, ok := extraOpts["node-ip"]; !ok {
62-
extraOpts["node-ip"] = cp.IP
58+
extraOpts["node-ip"] = nc.IP
6359
}
6460
if _, ok := extraOpts["hostname-override"]; !ok {
6561
nodeName := KubeNodeName(mc, nc)

0 commit comments

Comments
 (0)