Fixing 'targetport' to service 'port' mapping

Looks like the order should be reversed for this to work.
pull/6/head
Kaveh Shafiee 2017-10-26 11:28:27 -07:00 committed by Madhan Raj Mookkandy
parent 298c42bbcd
commit a632cd2a91
1 changed files with 3 additions and 3 deletions

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)