Canary deployments persistance #4763
Replies: 4 comments 4 replies
-
Assuming that your ingress controller is injected with the Linkerd proxy, the first thing I'd would check is whether the ingress controller is adding the If the header is present, the next thing to check is the Linkerd proxy logs, to see if there are any hints there. |
Beta Was this translation helpful? Give feedback.
-
Hi @ihcsim Yes ingress is injected with the sidecar. I will check the header, but I would of thought if it wasnt adding this header then it wouldn't route to a service at all? |
Beta Was this translation helpful? Give feedback.
-
@ihcsim I get you. Totally makes sense. I will give it a go and report back, thank you |
Beta Was this translation helpful? Give feedback.
-
I reverted back to using the nginx controller and that seems to work. Its a shame session stickiness doesnt work via Linkerd as thats kinda crucial for canary, A/B testing etc. I guess until that is fixed then I cant use any of the SMI TrafficSplit controls? Or can I? |
Beta Was this translation helpful? Give feedback.
-
Hello, I am using the latest version of linkerd and have got 2 front end demo applications, one is classed as
normal
and the other isred
, I have created aTrafficSplit
and weighted them 90/10 respectively.I then visit the front end url and get some weird behaviour, the app is a NextJS react website, running 2 different image builds, and each build uniquely names js and css, what is happening is I refresh the page and get 404 errors because it cant load either the js or css as its making that request to a pod that doesnt contain those files.
I have setup 3 different Ingress controllers to test this, Nginx, Traefik and Ambassador, applying their cookie persistence, but the same issue occurs.
I am looking for the correct way to get a canary
TrafficSplit
with persistence working with any Ingress at the moment, as far as I can tell from my testing the only way Id be able to achieve this is with an A/B style canary but then thats not a canary.Hopefully someone can shed some light as to what I am doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions