-
Notifications
You must be signed in to change notification settings - Fork 99
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
Add Kourier LoadBalancerIP Config #1343
Conversation
Welcome @theomessin! It looks like this is your first PR to knative/operator 🎉 |
Hi @theomessin. Thanks for your PR. I'm waiting for a knative 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/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@theomessin: 0 warnings.
In response to this:
Fixes #1290
Proposed Changes
- Adds new
service-loadBalancerIP
config for the Kourier Gateway.- This sets Kourier's Service
loadBalancerIP
to the configured value.- Several Cloud Providers use this setting to specify the IP address that a service gets assigned:
Some cloud providers allow you to specify the loadBalancerIP. In those cases, the load-balancer is created with the user-specified loadBalancerIP. If the loadBalancerIP field is not specified, the loadBalancer is set up with an ephemeral IP address. If you specify a loadBalancerIP but your cloud provider does not support the feature, the loadbalancerIP field that you set is ignored.
Release Note
NONE
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/test-infra repository.
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR @theomessin
But I realized that the LoadBalancerIP
field has been deprecated in k8s 1.24. Is it possible to ask your cloud provider to support the annotation as suggested in the change log?
Deprecated Service.Spec.LoadBalancerIP. This field was under-specified and its meaning varies across implementations. As of Kubernetes v1.24, users are encouraged to use implementation-specific annotations when available. This field may be removed in a future API version.
Hi @nak3. Yes, it has been marked as deprecated. We're using Google Kubernetes Engine and as far as I can tell they haven't implemented any alternatives as of yet. They still recommend we use
The field is still available and since there aren't any implementation-specific annotations when available I'd say the best thing to do is still add this in the operator. I think GCP is a pretty important cloud provider and we have no power over Google 🤷🏼 |
@nak3 any update on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! LGTM except for one comment.
/lgtm /assign @houshengbo |
bump @houshengbo |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1343 +/- ##
==========================================
+ Coverage 79.25% 79.28% +0.02%
==========================================
Files 40 40
Lines 1822 1810 -12
==========================================
- Hits 1444 1435 -9
+ Misses 275 273 -2
+ Partials 103 102 -1
☔ View full report in Codecov by Sentry. |
Are we only waiting on the lint failing? The error message doesn't mean anything to me...
|
As I commented #1343 (comment), I don't have a power to approve PR. |
Co-authored-by: Kenjiro Nakayama <[email protected]>
/lgtm (again I think I don't have a power to merge..) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know the operator but trust @nak3 's judgment
/approve
/hold
In case @houshengbo wants to weigh in, but feel free to unhold in a day or two
/retest |
@nak3 @psschwei @houshengbo Can we please get this merged? The longer it sits the more work I have to keep doing to resolve conflicts every time main changes... |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nak3, psschwei, theomessin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
Fixes #1290
Proposed Changes
service-load-balancer-ip
config for the Kourier Gateway.loadBalancerIP
to the configured value.Release Note