-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
gateway-apis: HTTPRoute with 0 weight still forward the request to backend #31745
Comments
What is the expectation when you have a single host with weight=0? I am not actually sure what the spec defines here? It seems like maybe it should be invalid? |
As per spec comment:
it seems that |
hmm.. and what should happen? we send a 404? it really seems odd to have only a single weight=0 backend.. |
Okay, I will open an issue against gateway-apis repo to make sure. |
As per kubernetes-sigs/gateway-api#596, the traffic should not be forwarded when weight is 0. This patch updates it. Fix istio#31745
* Do not forward the traffic to backend when weight is 0 As per kubernetes-sigs/gateway-api#596, the traffic should not be forwarded when weight is 0. This patch updates it. Fix #31745 * Add release note * Return 503 when total weight is zero * Add test
Bug description
weight: 0
.[X] Networking
Expected behavior
weight: 0
should not forward the request.Steps to reproduce the bug
1. Prepare k8s cluster with non-default cluster domain
2. Install Istio
For example, I am using the following manifest.
3. deploy Gateway,GatewayClass,HTTPRoute (with weight=0) ,Deployments
4. Access to the service
The access still works.
Version
The text was updated successfully, but these errors were encountered: