Merge pull request #8018 from sharifelgamal/nodeip
assign proper internal IPs for nodespull/8023/head
commit
4607c0f04a
|
|
@ -54,12 +54,8 @@ func extraKubeletOpts(mc config.ClusterConfig, nc config.Node, r cruntime.Manage
|
|||
if k8s.NetworkPlugin != "" {
|
||||
extraOpts["network-plugin"] = k8s.NetworkPlugin
|
||||
}
|
||||
cp, err := config.PrimaryControlPlane(&mc)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "getting master node")
|
||||
}
|
||||
if _, ok := extraOpts["node-ip"]; !ok {
|
||||
extraOpts["node-ip"] = cp.IP
|
||||
extraOpts["node-ip"] = nc.IP
|
||||
}
|
||||
if _, ok := extraOpts["hostname-override"]; !ok {
|
||||
nodeName := KubeNodeName(mc, nc)
|
||||
|
|
|
|||
Loading…
Reference in New Issue