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
a8492d74
Unverified
Commit
a8492d74
authored
Mar 06, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Mar 06, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #74688 from ksubrmnn/overlay_dsr
Allow Overlay loadbalancing to Public IP in Windows
parents
8dd60281
0173545b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
proxier.go
pkg/proxy/winkernel/proxier.go
+11
-7
No files found.
pkg/proxy/winkernel/proxier.go
View file @
a8492d74
...
...
@@ -1001,6 +1001,7 @@ func (proxier *Proxier) syncProxyRules() {
var
hnsEndpoints
[]
endpointsInfo
klog
.
V
(
4
)
.
Infof
(
"====Applying Policy for %s===="
,
svcName
)
// Create Remote endpoints for every endpoint, corresponding to the service
containsPublicIP
:=
false
for
_
,
ep
:=
range
proxier
.
endpointsMap
[
svcName
]
{
var
newHnsEndpoint
*
endpointsInfo
...
...
@@ -1024,7 +1025,6 @@ func (proxier *Proxier) syncProxyRules() {
// A remote endpoint was already created and proxy was restarted
newHnsEndpoint
,
err
=
hns
.
getEndpointByIpAddress
(
ep
.
ip
,
hnsNetworkName
)
}
if
newHnsEndpoint
==
nil
{
if
ep
.
isLocal
{
klog
.
Errorf
(
"Local endpoint not found for %v: err: %v on network %s"
,
ep
.
ip
,
err
,
hnsNetworkName
)
...
...
@@ -1054,7 +1054,8 @@ func (proxier *Proxier) syncProxyRules() {
}
if
len
(
providerAddress
)
==
0
{
klog
.
Errorf
(
"Could not find provider address for %s"
,
ep
.
ip
)
continue
providerAddress
=
proxier
.
nodeIP
.
String
()
containsPublicIP
=
true
}
hnsEndpoint
:=
&
endpointsInfo
{
ip
:
ep
.
ip
,
...
...
@@ -1105,12 +1106,15 @@ func (proxier *Proxier) syncProxyRules() {
klog
.
V
(
4
)
.
Infof
(
"Trying to Apply Policies for service %s"
,
spew
.
Sdump
(
svcInfo
))
var
hnsLoadBalancer
*
loadBalancerInfo
var
sourceVip
=
proxier
.
sourceVip
if
containsPublicIP
{
sourceVip
=
proxier
.
nodeIP
.
String
()
}
hnsLoadBalancer
,
err
:=
hns
.
getLoadBalancer
(
hnsEndpoints
,
false
,
proxier
.
isDSR
,
proxier
.
sourceVip
,
sourceVip
,
svcInfo
.
clusterIP
.
String
(),
Enum
(
svcInfo
.
protocol
),
uint16
(
svcInfo
.
targetPort
),
...
...
@@ -1130,7 +1134,7 @@ func (proxier *Proxier) syncProxyRules() {
hnsEndpoints
,
false
,
false
,
proxier
.
sourceVip
,
sourceVip
,
""
,
Enum
(
svcInfo
.
protocol
),
uint16
(
svcInfo
.
targetPort
),
...
...
@@ -1152,7 +1156,7 @@ func (proxier *Proxier) syncProxyRules() {
hnsEndpoints
,
false
,
false
,
proxier
.
sourceVip
,
sourceVip
,
externalIp
.
ip
,
Enum
(
svcInfo
.
protocol
),
uint16
(
svcInfo
.
targetPort
),
...
...
@@ -1172,7 +1176,7 @@ func (proxier *Proxier) syncProxyRules() {
hnsEndpoints
,
false
,
false
,
proxier
.
sourceVip
,
sourceVip
,
lbIngressIp
.
ip
,
Enum
(
svcInfo
.
protocol
),
uint16
(
svcInfo
.
targetPort
),
...
...
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