mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
No DNS in vagrant cross minions, need explicit IP as host
This commit is contained in:
@@ -18,7 +18,6 @@ package pod
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -195,10 +194,6 @@ func getInstanceIP(cloud cloudprovider.Interface, host string) string {
|
||||
if instances == nil || !ok {
|
||||
return ""
|
||||
}
|
||||
ix := strings.Index(host, ".")
|
||||
if ix != -1 {
|
||||
host = host[:ix]
|
||||
}
|
||||
addr, err := instances.IPAddress(host)
|
||||
if err != nil {
|
||||
glog.Errorf("Error getting instance IP: %#v", err)
|
||||
|
Reference in New Issue
Block a user