Commit a632cd2a authored by Kaveh Shafiee's avatar Kaveh Shafiee Committed by Madhan Raj Mookkandy

Fixing 'targetport' to service 'port' mapping

Looks like the order should be reversed for this to work.
parent 298c42bb
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment