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:
Kubernetes Prow Robot
2019-08-09 19:47:14 -07:00
committed by GitHub
3 changed files with 27 additions and 8 deletions

View File

@@ -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.")