Commit ea930dbe authored by m1093782566's avatar m1093782566

fix kube-proxy mode

parent d7e56d53
...@@ -268,8 +268,8 @@ func tryIPVSProxy(iptver iptables.IPTablesVersioner, kcompat iptables.KernelComp ...@@ -268,8 +268,8 @@ func tryIPVSProxy(iptver iptables.IPTablesVersioner, kcompat iptables.KernelComp
// IPVS Proxier relies on iptables // IPVS Proxier relies on iptables
useIPVSProxy, err := ipvs.CanUseIPVSProxier() useIPVSProxy, err := ipvs.CanUseIPVSProxier()
if err != nil { if err != nil {
utilruntime.HandleError(fmt.Errorf("can't determine whether to use ipvs proxy, using userspace proxier: %v", err)) // Try to fallback to iptables before falling back to userspace
return proxyModeUserspace utilruntime.HandleError(fmt.Errorf("can't determine whether to use ipvs proxy, error: %v", err))
} }
if useIPVSProxy { if useIPVSProxy {
return proxyModeIPVS return proxyModeIPVS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment