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:
@@ -1043,8 +1043,8 @@ func (proxier *Proxier) syncProxyRules() {
|
|||||||
false,
|
false,
|
||||||
svcInfo.clusterIP.String(),
|
svcInfo.clusterIP.String(),
|
||||||
Enum(svcInfo.protocol),
|
Enum(svcInfo.protocol),
|
||||||
uint16(svcInfo.port),
|
|
||||||
uint16(svcInfo.targetPort),
|
uint16(svcInfo.targetPort),
|
||||||
|
uint16(svcInfo.port),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Policy creation failed: %v", err)
|
glog.Errorf("Policy creation failed: %v", err)
|
||||||
@@ -1081,8 +1081,8 @@ func (proxier *Proxier) syncProxyRules() {
|
|||||||
false,
|
false,
|
||||||
externalIp.ip,
|
externalIp.ip,
|
||||||
Enum(svcInfo.protocol),
|
Enum(svcInfo.protocol),
|
||||||
uint16(svcInfo.port),
|
|
||||||
uint16(svcInfo.targetPort),
|
uint16(svcInfo.targetPort),
|
||||||
|
uint16(svcInfo.port),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Policy creation failed: %v", err)
|
glog.Errorf("Policy creation failed: %v", err)
|
||||||
@@ -1099,8 +1099,8 @@ func (proxier *Proxier) syncProxyRules() {
|
|||||||
false,
|
false,
|
||||||
lbIngressIp.ip,
|
lbIngressIp.ip,
|
||||||
Enum(svcInfo.protocol),
|
Enum(svcInfo.protocol),
|
||||||
uint16(svcInfo.port),
|
|
||||||
uint16(svcInfo.targetPort),
|
uint16(svcInfo.targetPort),
|
||||||
|
uint16(svcInfo.port),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Policy creation failed: %v", err)
|
glog.Errorf("Policy creation failed: %v", err)
|
||||||
|
Reference in New Issue
Block a user