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
d3a1510e
Commit
d3a1510e
authored
Aug 31, 2016
by
Girish Kalele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix kube-proxy logic to change iptables chains when ESIPP is turned on or off
parent
c9fde2ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
proxier.go
pkg/proxy/iptables/proxier.go
+10
-0
No files found.
pkg/proxy/iptables/proxier.go
View file @
d3a1510e
...
...
@@ -346,6 +346,10 @@ func (proxier *Proxier) sameConfig(info *serviceInfo, service *api.Service, port
if
info
.
sessionAffinityType
!=
service
.
Spec
.
SessionAffinity
{
return
false
}
onlyNodeLocalEndpoints
:=
apiservice
.
NeedsHealthCheck
(
service
)
&&
featuregate
.
DefaultFeatureGate
.
ExternalTrafficLocalOnly
()
if
info
.
onlyNodeLocalEndpoints
!=
onlyNodeLocalEndpoints
{
return
false
}
return
true
}
...
...
@@ -446,6 +450,9 @@ func (proxier *Proxier) OnServiceUpdate(allServices []api.Service) {
// Turn on healthcheck responder to listen on the health check nodePort
healthcheck
.
AddServiceListener
(
serviceName
.
NamespacedName
,
info
.
healthCheckNodePort
)
}
}
else
{
// Delete healthcheck responders, if any, previously listening for this service
healthcheck
.
DeleteServiceListener
(
serviceName
.
NamespacedName
,
0
)
}
proxier
.
serviceMap
[
serviceName
]
=
info
...
...
@@ -895,6 +902,9 @@ func (proxier *Proxier) syncProxyRules() {
writeLine
(
natChains
,
utiliptables
.
MakeChainLine
(
svcXlbChain
))
}
activeNATChains
[
svcXlbChain
]
=
true
}
else
if
activeNATChains
[
svcXlbChain
]
{
// Cleanup the previously created XLB chain for this service
delete
(
activeNATChains
,
svcXlbChain
)
}
// Capture the clusterIP.
...
...
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