-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Allow ip_hash for backends #94
Comments
We can solve it by solving a general problem of specifying a load balancing method: least_conn, ip_hash, general hash (https://www.nginx.com/resources/admin-guide/load-balancer/#method) We can have an annotation and a Config map key for that: Additionally, it makes sense to add an annotation that allows specifying a method per service, similar to https://github.com/nginxinc/kubernetes-ingress/tree/master/examples/rewrites. Let me know what you think. |
+1 for Alternatively, you could look at the service's "By default, the choice of backend is round robin. Client-IP based session affinity can be selected by setting But this only gives you the option between |
That'd be great if you could add it.
I think it's better to add more options then the two options available with the service session Affinity property. |
Will get my hands dirty and attempt to implement annotation and config map setting this week or weekend. For my PoC I simply hardcoded |
Is this still something being developed ? |
I still need this for a service I need to migrate inside my Kubernetes cluster. However I currently do not have time to work on it for next few weeks. I will post here when I do begin working on it. In case someone else is working on it in the meantime, please update this thread so we don't duplicate effort. |
The controller should accept some annotation to indicate client affinity, if so then set
ip_hash
in the upstream block.The text was updated successfully, but these errors were encountered: