GCE, Kubernetes with Socket.IO, NodeJs not enough resources

7/24/2018

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.

-- NitinD
google-kubernetes-engine
kubernetes
kubernetes-ingress
node.js
socket.io

1 Answer

7/24/2018

As mentioned in here, you can add a line to your service config file spec.sessionAffinity: ClientIP which should keep client IP stickiness

-- Patrick W
Source: StackOverflow