-
Notifications
You must be signed in to change notification settings - Fork 299
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
ingress creation should fail if static ip annotation does not exist #1005
Comments
Is this definitely a bug and not some sort of feature request? I had assumed this was intended behaviour. We previously relied on this behaviour (until we encountered this issue: https://issuetracker.google.com/154202236 [requires sign-in]). Perhaps there should be some annotation required to explicitly request that a static IP is generated? 🙂 |
cc: @spencerhance |
@omaskery Is it possible to create a staticip and use that name in the annotation? I see we create a staticIP if you also use HTTP and HTTPS - ingress-gce/pkg/loadbalancers/l7.go Line 177 in fbce6b5
|
@prameshj yes, I was speaking from an experience of a very unusual (and undesirable) edge case. I don't think it's worth considering here, I feel that my comment here was premature. Since omitting the Disregard my comment from above! |
Thanks for confirming! Here is the PR with the fix - #1080 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@prameshj Can we close this since the PR has merged? |
Yes, closing since the fix has been merged. |
The current handling of the static ip annotation can cause ingress VIP to change somewhat unexpectedly.
https://github.com/kubernetes/ingress-gce/blob/master/pkg/loadbalancers/forwarding_rules.go#L152-L167
If annotation "kubernetes.io/ingress.global-static-ip-name" is specified with a non-existed IP, a new static IP is created by the controller.
Now, if a static address is created with the "kubernetes.io/ingress.global-static-ip-name" value that was specified, the forwarding rule eventually gets updated with the new IP address.
The better behavior would be to fail the ingress creation in the first place if the static IP was not present.
The text was updated successfully, but these errors were encountered: