mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 11:48:15 +00:00
iptables proxier: route local traffic to LB IPs to service chain
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
This commit is contained in:
@@ -942,7 +942,10 @@ func TestOnlyLocalNodePorts(t *testing.T) {
|
||||
}
|
||||
|
||||
func onlyLocalNodePorts(t *testing.T, fp *Proxier, ipt *iptablestest.FakeIPTables) {
|
||||
shouldLBTOSVCRuleExist := len(fp.clusterCIDR) > 0
|
||||
// LB to SVC rule should always exist for local only since
|
||||
// any traffic with `--src-type LOCAL` now routes to service chain
|
||||
shouldLBTOSVCRuleExist := true
|
||||
|
||||
svcIP := "10.20.30.41"
|
||||
svcPort := 80
|
||||
svcNodePort := 3001
|
||||
|
||||
Reference in New Issue
Block a user