mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +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) {
|
func getClusterNodeIPs(clientset client.Interface) ([]string, error) {
|
||||||
preferredAddressTypes := []api.NodeAddressType{
|
preferredAddressTypes := []api.NodeAddressType{
|
||||||
api.NodeExternalIP,
|
api.NodeExternalIP,
|
||||||
|
api.NodeInternalIP,
|
||||||
}
|
}
|
||||||
nodeList, err := clientset.Core().Nodes().List(metav1.ListOptions{})
|
nodeList, err := clientset.Core().Nodes().List(metav1.ListOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user