-
Notifications
You must be signed in to change notification settings - Fork 743
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
Why not support nginx session sticky/affinity? #1487
Comments
Seems to be added support for canary and session affinity by this PR: kubernetes/ingress-nginx#7371 Would be awesome to have support for this with nginx! |
now that Gateway API has |
Thanks @akselleirv 's doc. Example: add session-affinity annotations in ingress yaml apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: podinfo
namespace: flagger
labels:
app: podinfo
annotations:
nginx.ingress.kubernetes.io/affinity: cookie
nginx.ingress.kubernetes.io/affinity-mode: balanced
nginx.ingress.kubernetes.io/affinity-canary-behavior: sticky
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
ingressClassName: ingress-internal
spec:
rules:
- host: "podinfo.flagger.lab.xxx.int.xxxxx.com"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: podinfo
port:
number: 80 |
Describe the feature
As far as I know, nginx itself also supports session sticky/affinity, but in flagger's documentation, session affinity only applies to istio situations .
Is it assessed that the technology is not feasible, or is there not enough development resources to realize it?
Proposed solution
If it's technically possible, I can try to offer PR
The text was updated successfully, but these errors were encountered: