diff --git a/test/e2e/framework/service_util.go b/test/e2e/framework/service_util.go index 114dececb12..300baa9f4a5 100644 --- a/test/e2e/framework/service_util.go +++ b/test/e2e/framework/service_util.go @@ -307,6 +307,10 @@ func GetNodePublicIps(c clientset.Interface) ([]string, error) { nodes := GetReadySchedulableNodesOrDie(c) ips := CollectAddresses(nodes, v1.NodeExternalIP) + if len(ips) == 0 { + // If ExternalIP isn't set, assume the test programs can reach the InternalIP + ips = CollectAddresses(nodes, v1.NodeInternalIP) + } return ips, nil }