Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
04d60dda
Commit
04d60dda
authored
Jul 03, 2016
by
Tim Hockin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove br_netfilter warning in kube-proxy
Many distros have this module linked in, generating a spurious error.
parent
d07328dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
proxier.go
pkg/proxy/iptables/proxier.go
+1
-9
No files found.
pkg/proxy/iptables/proxier.go
View file @
04d60dda
...
@@ -26,7 +26,6 @@ import (
...
@@ -26,7 +26,6 @@ import (
"encoding/base32"
"encoding/base32"
"fmt"
"fmt"
"net"
"net"
"os"
"reflect"
"reflect"
"strconv"
"strconv"
"strings"
"strings"
...
@@ -198,15 +197,8 @@ func NewProxier(ipt utiliptables.Interface, exec utilexec.Interface, syncPeriod
...
@@ -198,15 +197,8 @@ func NewProxier(ipt utiliptables.Interface, exec utilexec.Interface, syncPeriod
// Proxy needs br_netfilter and bridge-nf-call-iptables=1 when containers
// Proxy needs br_netfilter and bridge-nf-call-iptables=1 when containers
// are connected to a Linux bridge (but not SDN bridges). Until most
// are connected to a Linux bridge (but not SDN bridges). Until most
// plugins handle this, log when config is missing
// plugins handle this, log when config is missing
warnBrNetfilter
:=
false
if
_
,
err
:=
os
.
Stat
(
"/sys/module/br_netfilter"
);
os
.
IsNotExist
(
err
)
{
warnBrNetfilter
=
true
}
if
val
,
err
:=
utilsysctl
.
GetSysctl
(
sysctlBridgeCallIptables
);
err
==
nil
&&
val
!=
1
{
if
val
,
err
:=
utilsysctl
.
GetSysctl
(
sysctlBridgeCallIptables
);
err
==
nil
&&
val
!=
1
{
warnBrNetfilter
=
true
glog
.
Infof
(
"missing br-netfilter module or unset sysctl br-nf-call-iptables; proxy may not work as intended"
)
}
if
warnBrNetfilter
{
glog
.
Infof
(
"missing br-netfilter module or unset br-nf-call-iptables; proxy may not work as intended"
)
}
}
// Generate the masquerade mark to use for SNAT rules.
// Generate the masquerade mark to use for SNAT rules.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment