Merge pull request #114725 from danwinship/kube-proxy-startup-cleanup

(minor) kube-proxy startup cleanup
This commit is contained in:
Kubernetes Prow Robot
2023-01-05 13:57:59 -08:00
committed by GitHub
5 changed files with 40 additions and 41 deletions

View File

@@ -85,9 +85,14 @@ func NewHollowProxyOrDie(
klog.InfoS("can't determine this node's IP, assuming 127.0.0.1")
nodeIP = netutils.ParseIPSloppy("127.0.0.1")
}
family := v1.IPv4Protocol
if iptInterface.IsIPv6() {
family = v1.IPv6Protocol
}
// Real proxier with fake iptables, sysctl, etc underneath it.
//var err error
proxier, err = iptables.NewProxier(
family,
iptInterface,
sysctl,
execer,