mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 14:23:37 +00:00
fix kube-proxy mode
This commit is contained in:
parent
d7e56d5330
commit
ea930dbe5c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user