IPVS stickiness in case of many clients can be hidden behind a single IP address

272 Views Asked by At

I am using minikube cluster on AWS instance. I have replaced IPVS with iptables within kube-proxy to achieve session affinity. IPVS source hashing algorithm is used to achieve session affinity, now to my understanding, the source hashing algorithm is maintaining session on the basis of only IP address. This is not fine in case of the multiple user connecting from private network having only one public end-point. The traffic from that public end-point is always directed to one pod in case of replica although they may be different users. This leaves other pod ideal.

Desired result:

The different users from the same public end-point should be considered as different users on the basis of same-IP+unique-port and should be directed to different pods within the replica.

How can i achieve this using IPVS?

0

There are 0 best solutions below