-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
HTTPRoute Weight Not Honored for Pod-to-Pod Communication via ClusterIP Service #13238
Comments
Hey @Manikkumar1988! Can you show us the |
Thanks for the response, I have mentioned wrong port in the HTTPRoute thats why it wasn't working. |
I'm unable to reproduce this:
As mentioned, if you encounter this in the future, please capture the route status as well as the output of |
We believe this issue may was fixed by #12635, which was included in edge-24.5.4 (released in May). Your report indicates that you were using a recent edge release, though:
If you can reproduce this on a recent Linkerd release, we'd be curious to learn more. |
What is the issue?
In minikube with latest linkerd installed,
Expectation is
HTTPRoute - should honour the weightage when routing the traffic to desired service for the communication happening through ClusterIP type Service.
Actual is
HTTPRoute - doesn't honour the weightage when routing the traffic to desired service. Its alway directing to the non-desired service. Even when weightage of desired service has 100% while the other has 0%
How can it be reproduced?
sample-app-v1.yaml
sample-app-v2.yaml
route.yaml
Run a nginx pod
kubectl run my-pod --image=nginx -n test-app
Run curl request to v1 service.
kubectl exec -it -n test-app my-pod -c my-pod -- curl -s -o - sample-app-v1
Expected:
Hello from v2
Actual:
Hello from v1
Logs, error output, etc
Expected:
Hello from v2
Actual:
Hello from v1
output of
linkerd check -o short
Environment
Kubernetes Version:
Client Version: v1.30.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.0
Cluster Version:
minikube version: v1.33.1
commit: 5883c09216182566a63dff4c326a6fc9ed2982ff
Host OS:
Mac Sonoma 14.5
Linkerd Version:
Client version: edge-24.10.4
Server version: edge-24.10.4
Possible solution
No response
Additional context
No response
Would you like to work on fixing this bug?
maybe
The text was updated successfully, but these errors were encountered: