-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ovn lb select the local chassis's backend prefer #4894
Open
changluyi
wants to merge
4
commits into
master
Choose a base branch
from
lb_service_select_local_backend
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,399
−16
Conversation
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
Pull Request Test Coverage Report for Build 13152489564Details
💛 - Coveralls |
93b8ed4
to
318cff3
Compare
318cff3
to
cdbf329
Compare
cdbf329
to
ffd7994
Compare
ffd7994
to
21e47a8
Compare
21e47a8
to
2ade8ff
Compare
2ade8ff
to
add2969
Compare
8a81fc8
to
4bd7410
Compare
a703a56
to
d1385c6
Compare
zhangzujian
reviewed
Jan 24, 2025
zhangzujian
reviewed
Jan 24, 2025
zhangzujian
reviewed
Jan 24, 2025
zhangzujian
reviewed
Jan 24, 2025
zhangzujian
reviewed
Jan 24, 2025
zhangzujian
reviewed
Jan 24, 2025
zhangzujian
reviewed
Jan 24, 2025
Signed-off-by: clyi <clyi@alauda.io>
Signed-off-by: clyi <clyi@alauda.io>
48a02a6
to
692ec96
Compare
zhangzujian
reviewed
Feb 5, 2025
692ec96
to
c24b4c3
Compare
zbb88888
reviewed
Feb 5, 2025
The following occasional failure need to be fixed: [FAILED] Code Location: /home/zhang/kube-ovn/test/e2e/metallb/e2e_test.go:417
Expected
<string>: kube-ovn-control-plane
to equal
<string>: kube-ovn-worker
In [It] at: /home/zhang/kube-ovn/test/e2e/metallb/e2e_test.go:358 @ 02/06/25 02:45:06.75 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
Improve exist functions
feature
New network feature
size:XXL
This PR changes 1000+ lines, ignoring generated files.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
What type of this PR
Examples of user facing changes:
ovn 实现原理。
OVN 这部分代码修改原理:
实现原理是获取到vip backend的 chassis , 新增加流表入下:
is_chassis_resident("nginx-6f55f97f94-8kvlx.default") , 其中 nginx-6f55f97f94-8kvlx.default 是某个vip 的backend下的任意一个lsp,backends=10.16.0.3:80 表示这个lb 在这个chassis下的所有backendip: port 。
如果hit不到以上流表,就会走原来的ovn lb 规则。
该功能需要配置Load_balancer的 两个字段
option:prefer_local_backend
ip_port_mappings
kube-ovn 增加场景
场景1:switchlbRules 支持 OVN LB 优先走本地 backend
使用方法:
kube-ovn-controller 开启开关 --enable-ovn-lb-prefer-local = true
用例:
场景2: ovn lb 模式下支持 internalTrafficPolicy: Local , 真正实现发送本地 backend
使用方法:
kube-ovn-controller 开启开关 --enable-ovn-lb-prefer-local = true
用例:
场景3:underlay 模式下 和 metallb 一起使用, 该场景主要是为了metallb 模式下支持某个underlay subnet提供外部地址池的vip, vip的后端pod同样在该子网下, 并保证clientIP 不被改变。
流量走向:
使用方法:
Which issue(s) this PR fixes
Fixes #(issue-number)