Sticky sessions are not working using Nginx on Kubernetes Sticky sessions are not working using Nginx on Kubernetes kubernetes kubernetes

Sticky sessions are not working using Nginx on Kubernetes


I am posting this as a community wiki answer for better visibility.

As already mentioned in the comments: any other annotation will not work when used alongside the ssl-passthrough. This is also being mentioned by the official docs:

Because SSL Passthrough works on layer 4 of the OSI model (TCP) andnot on the layer 7 (HTTP), using SSL Passthrough invalidates all theother annotations set on an Ingress object.