Merge pull request #77167 from paulsubrata55/spaul-kube-proxy-fix
Fix for kube-proxy to wait for some duration for the node to be defined.
This commit is contained in:
@@ -137,6 +137,9 @@ func newProxyServer(
|
||||
nodeIP := net.ParseIP(config.BindAddress)
|
||||
if nodeIP.IsUnspecified() {
|
||||
nodeIP = utilnode.GetNodeIP(client, hostname)
|
||||
if nodeIP == nil {
|
||||
return nil, fmt.Errorf("unable to get node IP for hostname %s", hostname)
|
||||
}
|
||||
}
|
||||
if proxyMode == proxyModeIPTables {
|
||||
klog.V(0).Info("Using iptables Proxier.")
|
||||
|
Reference in New Issue
Block a user