Add NodeInternalIP as a fallback to federation api-server nodeport service

This commit is contained in:
Łukasz Oleś
2017-06-05 11:28:05 +02:00
parent f2362e9fc2
commit 6e6c903a04

View File

@@ -496,6 +496,7 @@ func createService(cmdOut io.Writer, clientset client.Interface, namespace, svcN
func getClusterNodeIPs(clientset client.Interface) ([]string, error) {
preferredAddressTypes := []api.NodeAddressType{
api.NodeExternalIP,
api.NodeInternalIP,
}
nodeList, err := clientset.Core().Nodes().List(metav1.ListOptions{})
if err != nil {