I am trying to migrate a real-time socket.io NodeJs application to Kubernetes cluster on GCP. I am facing an issue while maintaining the session stickiness (by CLIENT IP) with the normal load balancer. I found out that I need to use the nginx-ingress controller for this. There is no proper documentation or tutorial available. If anyone can anyone help me with this? Thanks.
UPDATED I am looking for CLIENT IP session stickiness.
As mentioned in here, you can add a line to your service config file spec.sessionAffinity: ClientIP which should keep client IP stickiness