Merge pull request #54969 from madhanrm/winkernelproxy

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fixing 'targetport' to service 'port' mapping

Looks like the order should be reversed for this to work.



**What this PR does / why we need it**:

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #54968 

**Special notes for your reviewer**:

**Release note**:

```release-note

```
This commit is contained in:
Kubernetes Submit Queue 2017-11-06 18:33:25 -08:00 committed by GitHub
commit adf7835695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1043,8 +1043,8 @@ func (proxier *Proxier) syncProxyRules() {
false,
svcInfo.clusterIP.String(),
Enum(svcInfo.protocol),
uint16(svcInfo.port),
uint16(svcInfo.targetPort),
uint16(svcInfo.port),
)
if err != nil {
glog.Errorf("Policy creation failed: %v", err)
@ -1081,8 +1081,8 @@ func (proxier *Proxier) syncProxyRules() {
false,
externalIp.ip,
Enum(svcInfo.protocol),
uint16(svcInfo.port),
uint16(svcInfo.targetPort),
uint16(svcInfo.port),
)
if err != nil {
glog.Errorf("Policy creation failed: %v", err)
@ -1099,8 +1099,8 @@ func (proxier *Proxier) syncProxyRules() {
false,
lbIngressIp.ip,
Enum(svcInfo.protocol),
uint16(svcInfo.port),
uint16(svcInfo.targetPort),
uint16(svcInfo.port),
)
if err != nil {
glog.Errorf("Policy creation failed: %v", err)