8000 feat: add rules in PREROUTING for pod loadbalacing access to apiservers in local mode by huangchenzhao · Pull Request #2398 · openyurtio/openyurt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add rules in PREROUTING for pod loadbalacing access to apiservers in local mode #2398

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

huangchenzhao
Copy link
Member

What type of PR is this?

/kind feature

What this PR does / why we need it:

In local mode, the previous implementation only added loadbalancing rules in the OUTPUT chain, which is suitable for kubelet loadbalancing access to apiservers.

For pods, their traffic goes through PREROUTING chain instead of OUTPUT chain. Therefore, when pods loadbalancing access to apiservers needs to add rules in PREROUTING chain, that is, we need to append a LBCHAIN ​​chain to PREROUTING chain.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

@huangchenzhao huangchenzhao requested a review from a team as a code owner May 8, 2025 09:52
Copy link
codecov bot commented May 8, 2025

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Please upload report for BASE (master@2b7106e). Learn more about missing BASE report.

Files with missing lines Patch % Lines
pkg/yurthub/locallb/iptables.go 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2398   +/-   ##
=========================================
  Coverage          ?   42.04%           
=========================================
  Files             ?      395           
  Lines             ?    25972           
  Branches          ?        0           
=========================================
  Hits              ?    10920           
  Misses            ?    14032           
  Partials          ?     1020           
Flag Coverage Δ
unittests 42.04% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
sonarqubecloud bot commented May 8, 2025

@huangchenzhao
Copy link
Member Author

/rerun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0