-
Notifications
You must be signed in to change notification settings - Fork 8.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
Sticky Ingress annotations don't appear to work at all #771
Comments
@rikatz can you help to debug this issue? |
Sure, just checking here |
@jakexks Can you please post your '/etc/nginx/nginx.conf' from Ingress Controller into some Pastebin (or even here) and sent it to me? Also please send the start directive (/nginx-ingress-controller or even the yaml used to deploy the ingress). I've seen also that you're trying to use the same service from Default Backend into your ingress. As Default Backend service is created not from annotations (like ingress) but directly from the 'service', maybe this is coliding with it. Try creating your ingress pointing to another service, and check if this works :) Waiting here :) |
Hey all, we came across a problem today, which has the same root cause, as far as we understand. Our problem is:
This works... but as we noticed today, only sometimes, and when it works it can suddenly stop working: the session affinity configuration for the upstream is sometimes in the nginx config, sometimes not. This is what happens to our understanding:
What we could do on our side, is to use a separate service for the redirect Ingress, so that it gets its own upstream. But that does sound like a bad workaround to me, because that will result in unused services and upstreams. We think that it would make more sense, that the controller deals better with this:
Kind regards, Marc |
Yes @slintes You're right. @aledbf This needs some kind of rewriting of ingress Core, as the proposal here is to have a upstream per ingress object. It happens that when we've to ingresses controllers using the same backend, the first created ingress is the 'owner' of the upstream, and then other ingresses objects using the same upstream are not considered :) I can take a look at this, but I'm pretty busy those days here at work. Tks |
I really don't want to introduce that change. Maybe we can duplicate the upstream definition only in those cases where session affinity or custom load balancing algorithm is configured. |
So @jakexks, your attempt to get a sticky session example working should use a different service other then default-http-backend to work around the problem discussed in the comment above. |
What do you mean? |
About my suggestion of creating a upstream per ingress object. |
I repeat my answer from a previous comment "Maybe we can duplicate the upstream definition only in those cases where session affinity or custom load balancing algorithm is configured" |
Right :) thanks. Let me know if need some help. I'm pretty busy here, but can try to achieve this in weekends :) Thanks! |
Image: gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.6
After deploying the ingress controller and default backend, I created a test ingress object based on the example, but the sticky session cookie isn't set. Anything I'm doing wrong?
The text was updated successfully, but these errors were encountered: