feat(l4): Add support for enabling L4 NetLB Regional Backend Services by default#2967
feat(l4): Add support for enabling L4 NetLB Regional Backend Services by default#296708volt wants to merge 2 commits intokubernetes:masterfrom
Conversation
|
Hi @08volt. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
/retest |
| }, | ||
| { | ||
| desc: "Should detect RBS by default", | ||
| isRBSDefault: true, |
There was a problem hiding this comment.
What about other testcases? We need to check if this doesn't modify existing Target pool LBs. I think it might be easier to add expectRBSServiceWithDefault to existing testcases and run with flag "true" and "false"
There was a problem hiding this comment.
I added those cases and added the check for ForwardingRule legacy in the controller code
7c64a95 to
eaf3a7a
Compare
eaf3a7a to
7caa30b
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 08volt The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
7caa30b to
2a4a8dd
Compare
1fe32be to
b480ddf
Compare
daece4f to
ca2a4cd
Compare
ca2a4cd to
c2d2f7c
Compare
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
c2d2f7c to
8617c83
Compare
|
@08volt: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/uncc |
feat(l4): Enable L4 NetLB Regional Backend Services by default
This change introduces a feature flag
--enable-l4-netlb-rbs-by-defaultto enable the use of L4 NetLB Regional Backend Services (RBS) by default for newly created L4 NetLB services, instead of relying on CCM as default implementation.Changes:
EnableL4NetLBRBSByDefaultfield toControllerContextConfiginpkg/context/context.go.--enable-l4-netlb-rbs-by-defaultboolean flag inpkg/flags/flags.go, defaulting tofalse.L4NetLBControllerinpkg/l4lb/l4netlbcontroller.goto use theEnableL4NetLBRBSByDefaultsetting from the context.isRBSBasedServicelogic to returntrueif theenableRBSDefaultflag is set, in addition to existing checks (annotations, finalizers, existing FR).pkg/l4lb/l4netlbcontroller_test.goto test the new default behavior.This change allows clusters to default to using the more modern RBS for L4 NetLBs, while still allowing individual services to use the legacy instance-based backend services if explicitly setting the LoadBalancerClass spec in the Service.
#L4NetLB #RBS