argoproj / argo-rollouts

Progressive Delivery for Kubernetes
https://argo-rollouts.readthedocs.io/
Apache License 2.0
2.75k stars 863 forks source link

How to troute traffic durring canary deployment only to canary version using url prefix #3159

Open sanjaybaburaj opened 11 months ago

sanjaybaburaj commented 11 months ago

Tried to use mirroe route option using url prefix , but durring canary deployment there is a route rule getting updated in the virtualservice which specifies that 100% traffic to go to stable service, is there any option to speficy that for all the request marching the URL prefix, it should go only to the anary service and not the stable service.

image argo_mirror_route

zachaller commented 11 months ago

This config looks correct to me, it should be mirroring any traffic that matches that prifix to the canary but it will still send it to the stable that is what mirroring is suppose to do. It is also configured to mirror 100% of the traffic to the canary from this config. Then any traffic that does not match the prefix falls into the next mataching route, istio priorities route config by order.