forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hostport: Add an option host-port-only-local
Enable option host-port-only-local expects same behavior as kube-proxy, that is almost same with the iptable rule 'ADDRTYPE match dst-type LOCAL'. And means not do the destination pod ip translation locally. Yes, the present implementation has better performance for pod to pod traffics inside cluster, but in some special cases we still need this option to keep same behavior with kube-proxy, and if all the traffics come from outside, we do not need thousands of service mapping entries on each nodes. Fixes: 7fcf660 ("cilium, bpf: add native HostPort mapping support") Example: --host-port-only-local=false (by default, no changes) 8 10.44.76.162:9000 HostPort 1 => 172.30.0.74:8000 9 10.44.75.162:9000 HostPort 1 => 172.30.2.178:8000 10 10.44.74.162:9000 HostPort 1 => 172.30.3.29:8000 11 10.44.76.150:9000 HostPort 1 => 172.30.1.34:8000 --host-port-only-local=true 8 10.44.76.162:9000 HostPort 1 => 172.30.0.74:8000 Signed-off-by: yangxingwu <[email protected]> Signed-off-by: huangxuesen <[email protected]> Signed-off-by: Wang Li <[email protected]>
- Loading branch information
Wang Li
committed
Apr 22, 2020
1 parent
fff6d6c
commit 4e632d2
Showing
12 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters