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
e3dbad32
Unverified
Commit
e3dbad32
authored
Sep 19, 2018
by
k8s-ci-robot
Committed by
GitHub
Sep 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #68786 from alexjx/pr/68194
Restore *filter table for ipvs
parents
9228bec3
4ca62e4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
proxier.go
pkg/proxy/ipvs/proxier.go
+4
-0
No files found.
pkg/proxy/ipvs/proxier.go
View file @
e3dbad32
...
@@ -697,6 +697,8 @@ func (proxier *Proxier) syncProxyRules() {
...
@@ -697,6 +697,8 @@ func (proxier *Proxier) syncProxyRules() {
// This is to avoid memory reallocations and thus improve performance.
// This is to avoid memory reallocations and thus improve performance.
proxier
.
natChains
.
Reset
()
proxier
.
natChains
.
Reset
()
proxier
.
natRules
.
Reset
()
proxier
.
natRules
.
Reset
()
proxier
.
filterChains
.
Reset
()
proxier
.
filterRules
.
Reset
()
// Write table headers.
// Write table headers.
writeLine
(
proxier
.
filterChains
,
"*filter"
)
writeLine
(
proxier
.
filterChains
,
"*filter"
)
...
@@ -1131,6 +1133,8 @@ func (proxier *Proxier) syncProxyRules() {
...
@@ -1131,6 +1133,8 @@ func (proxier *Proxier) syncProxyRules() {
proxier
.
iptablesData
.
Reset
()
proxier
.
iptablesData
.
Reset
()
proxier
.
iptablesData
.
Write
(
proxier
.
natChains
.
Bytes
())
proxier
.
iptablesData
.
Write
(
proxier
.
natChains
.
Bytes
())
proxier
.
iptablesData
.
Write
(
proxier
.
natRules
.
Bytes
())
proxier
.
iptablesData
.
Write
(
proxier
.
natRules
.
Bytes
())
proxier
.
iptablesData
.
Write
(
proxier
.
filterChains
.
Bytes
())
proxier
.
iptablesData
.
Write
(
proxier
.
filterRules
.
Bytes
())
glog
.
V
(
5
)
.
Infof
(
"Restoring iptables rules: %s"
,
proxier
.
iptablesData
.
Bytes
())
glog
.
V
(
5
)
.
Infof
(
"Restoring iptables rules: %s"
,
proxier
.
iptablesData
.
Bytes
())
err
=
proxier
.
iptables
.
RestoreAll
(
proxier
.
iptablesData
.
Bytes
(),
utiliptables
.
NoFlushTables
,
utiliptables
.
RestoreCounters
)
err
=
proxier
.
iptables
.
RestoreAll
(
proxier
.
iptablesData
.
Bytes
(),
utiliptables
.
NoFlushTables
,
utiliptables
.
RestoreCounters
)
...
...
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