mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Merge pull request #13670 from aveshagarwal/proxy-fixes
Auto commit by PR queue bot
This commit is contained in:
commit
3879bee562
@ -165,12 +165,17 @@ func (s *ProxyServer) Run(_ []string) error {
|
||||
var proxier proxy.ProxyProvider
|
||||
var endpointsHandler config.EndpointsConfigHandler
|
||||
|
||||
// guaranteed false on error, error only necessary for debugging
|
||||
shouldUseIptables, err := iptables.ShouldUseIptablesProxier()
|
||||
if err != nil {
|
||||
glog.Errorf("Can't determine whether to use iptables or userspace, using userspace proxier: %v", err)
|
||||
shouldUseIptables := false
|
||||
if !s.ForceUserspaceProxy {
|
||||
var err error
|
||||
// guaranteed false on error, error only necessary for debugging
|
||||
shouldUseIptables, err = iptables.ShouldUseIptablesProxier()
|
||||
if err != nil {
|
||||
glog.Errorf("Can't determine whether to use iptables proxy, using userspace proxier: %v", err)
|
||||
}
|
||||
}
|
||||
if !s.ForceUserspaceProxy && shouldUseIptables {
|
||||
|
||||
if shouldUseIptables {
|
||||
glog.V(2).Info("Using iptables Proxier.")
|
||||
|
||||
execer := exec.New()
|
||||
|
Loading…
Reference in New Issue
Block a user