-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feature: add load balancer name to IngressClassParams #4290
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
feature: add load balancer name to IngressClassParams #4290
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 1ms-ms The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @1ms-ms. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. Instructions 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. |
Hey, thanks for the contribution. I don't quite follow what problem this is solving though. A load balancer name is unique within a region / account, meaning that that the ingress class param would be a 1:1 mapping to ingress resources. I don't think it makes sense to add the LB name to the ingress class params. |
Hi @zac-nixon, thanks for the quick reply. This PR is motivated by the fact that I couldn't find a satisfactory way to provision an ALB with a specific name using this controller.
This is exactly the reason for this PR. I manage 30 ingresses and want to logically group and bind them to a single ALB. The best option currently is using
I don’t like either of these options. I have reviewed other issues like #2600 and the one I linked earlier (#2311), and the approach I propose seems to be mentioned by other users as well. In the end, I believe this PR wont change anything for people who use the annotation for ALB name, but introduces flexibility for people like me, who try to group ingresses and have cleaner setup with EDIT: doesnt spec.group imply a singular ALB as well? |
hmm, great point about the existing ingress group name logic. I honestly can't think of a use-case to specify that, but since we have a precedence already set and this will help your use-case, I am happy to approve it :D |
/ok-to-test |
/lgtm |
Issue
Entry point to #2311. If accepted, we will need to add
WAF arn/name
toIngressClassParams
spec as well.Description
Currently, to provision load balancer with a hard coded name (that is a name which isnt generated from
group.name
), we need to use alb.ingress.kubernetes.io/load-balancer-name annotation, added to at least one ingress resource. When I create anIngressClass
, I wish I could specify the load balancer name as part ofIngressClassParams
spec and not care about the lifecycle of theload-balancer-name
annotation.Checklist
README.md
, or thedocs
directory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯