Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ResolveBindAddress (3.76 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/net/interface.go

    }
    
    // ResolveBindAddress returns the IP address of a daemon, based on the given bindAddress:
    // If bindAddress is unset, it returns the host's default IP, as with ChooseHostInterface().
    // If bindAddress is unspecified or loopback, it returns the default IP of the same
    // address family as bindAddress.
    // Otherwise, it just returns bindAddress.
    func ResolveBindAddress(bindAddress net.IP) (net.IP, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 07:07:03 UTC 2022
    - 14.7K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/config/common.go

    	}
    	return nil
    }
    
    // ChooseAPIServerBindAddress is a wrapper for netutil.ResolveBindAddress that also handles
    // the case where no default routes were found and an IP for the API server could not be obtained.
    func ChooseAPIServerBindAddress(bindAddress net.IP) (net.IP, error) {
    	ip, err := netutil.ResolveBindAddress(bindAddress)
    	if err != nil {
    		if netutil.IsNoRoutesError(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/options/serving.go

    	}
    }
    
    func (s *SecureServingOptions) DefaultExternalAddress() (net.IP, error) {
    	if s.ExternalAddress != nil && !s.ExternalAddress.IsUnspecified() {
    		return s.ExternalAddress, nil
    	}
    	return utilnet.ResolveBindAddress(s.BindAddress)
    }
    
    func (s *SecureServingOptions) Validate() []error {
    	if s == nil {
    		return nil
    	}
    
    	errors := []error{}
    
    	if s.Required && s.BindPort < 1 || s.BindPort > 65535 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 13:08:18 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  4. pkg/kubelet/nodestatus/setters.go

    							ipAddr = addr
    							break
    						} else if ipAddr == nil {
    							ipAddr = addr
    						}
    					}
    				}
    
    				if ipAddr == nil {
    					ipAddr, err = utilnet.ResolveBindAddress(nodeIP)
    				}
    			}
    
    			if ipAddr == nil {
    				// We tried everything we could, but the IP address wasn't fetchable; error out
    				return fmt.Errorf("can't get ip address of node %s. error: %v", node.Name, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 12:12:04 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  5. pkg/proxy/winkernel/proxier.go

    		}
    
    		if nodeIP.IsUnspecified() {
    			// attempt to get the correct ip address
    			klog.V(2).InfoS("Node ip was unspecified, attempting to find node ip")
    			nodeIP, err = apiutil.ResolveBindAddress(nodeIP)
    			if err != nil {
    				klog.InfoS("Failed to find an ip. You may need set the --bind-address flag", "err", err)
    			}
    		}
    
    		interfaces, _ := net.Interfaces() //TODO create interfaces
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 59K bytes
    - Viewed (0)
  6. CHANGELOG/CHANGELOG-1.21.md

    - The apimachinery util/net function used to detect the bind address `ResolveBindAddress()` takes into consideration global IP addresses on loopback interfaces when 1) the host has default routes, or 2) there are no global IPs on those interfaces in order to support more complex network scenarios like BGP Unnumbered RFC 5549 ([...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 14 07:03:14 UTC 2022
    - 367.3K bytes
    - Viewed (0)
Back to top