Skip to content

Commit 8df9029

Browse files
author
Josh Woodcock
committed
Fix node InternalIP not matching host-only address
1 parent 35f45d1 commit 8df9029

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/minikube/bootstrapper/kubeadm/kubeadm.go

+3
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ func NewKubeletConfig(k8s config.KubernetesConfig, r cruntime.Manager) ([]byte,
548548
if k8s.NetworkPlugin != "" {
549549
extraOpts["network-plugin"] = k8s.NetworkPlugin
550550
}
551+
if _, ok := extraOpts["node-ip"]; !ok {
552+
extraOpts["node-ip"] = k8s.NodeIP
553+
}
551554

552555
podInfraContainerImage, _ := images.CachedImages(k8s.ImageRepository, k8s.KubernetesVersion)
553556
if _, ok := extraOpts["pod-infra-container-image"]; !ok && k8s.ImageRepository != "" && podInfraContainerImage != "" {

0 commit comments

Comments
 (0)