mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 08:40:42 +00:00
Fixing 'targetport' to service 'port' mapping
Looks like the order should be reversed for this to work.
This commit is contained in:
parent
298c42bbcd
commit
a632cd2a91
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user