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

ingress annotations affinity is not working #844

Closed
RTBathula opened this issue Jun 12, 2017 · 4 comments · Fixed by #871
Closed

ingress annotations affinity is not working #844

RTBathula opened this issue Jun 12, 2017 · 4 comments · Fixed by #871

Comments

@RTBathula
Copy link

Hi,
I followed this tutorial https://github.com/kubernetes/ingress/tree/master/examples/affinity/cookie/nginx.
and made following ingress

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: color-ingress
  annotations:
    kubernetes.io/ingress.class: "nginx"  
    ingress.kubernetes.io/affinity: "cookie"
    ingress.kubernetes.io/session-cookie-name: "route"
    ingress.kubernetes.io/session-cookie-hash: "sha1"
spec:
  rules:
  - http:
      paths:
      - path: /
        backend:
          serviceName: red
          servicePort: 80

and when i do curl -I 146.148.57.255 (external IP from nginx controller service).
I am not seeing cookie is set in headers

@RTBathula
Copy link
Author

Hi @aledbf May I assume this one is solved?

@aledbf
Copy link
Member

aledbf commented Jun 15, 2017

@RTBathula sorry, I still need to test your issue with the example you provided. Before the end of the day I will let you know. Apologies for the delay.

@RTBathula
Copy link
Author

Thanks for reply. I will wait.

@RTBathula
Copy link
Author

Thanks @aledbf , It is working.

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.

2 participants