Skip to content
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 sessions do not working with no host config #4786

Closed
joylili opened this issue Nov 28, 2019 · 4 comments
Closed

Sticky sessions do not working with no host config #4786

joylili opened this issue Nov 28, 2019 · 4 comments

Comments

@joylili
Copy link

joylili commented Nov 28, 2019

Sticky sessions do not working with no host config

NGINX Ingress controller version: 0.24.1
Kubernetes version (use kubectl version): 1.9.7
OS (e.g. from /etc/os-release): CentOS 7.6

I'm facing sticky sessions do not working with no host config,the Ingress is as Follows

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
    nginx.ingress.kubernetes.io/affinity: cookie
    nginx.ingress.kubernetes.io/session-cookie-hash: sha1
    nginx.ingress.kubernetes.io/session-cookie-name: route
  name: web-demo-bak3
  namespace: ingress-nginx
spec:
  rules:
    http:
      paths:
      - backend:
          serviceName: tomcat
          servicePort: 8080
        path: /

I visited this url ,but no cookie generated, How to solve this?

@davidfowl
Copy link

I'm seeing the same thing.

@aledbf
Copy link
Member

aledbf commented Jan 2, 2020

Closing. Fixed in #4867

@aledbf aledbf closed this as completed Jan 2, 2020
@davidfowl
Copy link

@aledbf how do we try this out?

@aledbf
Copy link
Member

aledbf commented Jan 3, 2020

@davidfowl you can use the image quay.io/kubernetes-ingress-controller/nginx-ingress-controller-amd64:dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants