mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Add NodeInternalIP as a fallback to federation api-server nodeport service
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user