Welcome! Log In Create A New Profile

Advanced

nginx can't implement session stickiness with nodeport services, must be clusterip?

David Karr
March 08, 2024 02:20PM
I maintain the Java side of a platform that supports a couple of hundred
services running in a number of k8s clusters. Each pod has a container
running the Java process, and a container running nginx, as a proxy to the
Java service. All the k8s service objects are type NodePort, not ClusterIP.

I don't know a lot about nginx, we consider it mostly a blackbox.

We have one service that unfortunately requires session stickiness. I am
being told that we have to change the service type for this service to
ClusterIP, because, and I quote the person who told me this:

"Nginx needs to be able to read the "endpoint" objects off of the
service. For some reason, that's not possible with NodePorts, but works
fine with ClusterIPs."

Does this make sense to anyone here? Can someone explain why this might be?
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx can't implement session stickiness with nodeport services, must be clusterip?

David Karr March 08, 2024 02:20PM

Re: nginx can't implement session stickiness with nodeport services, must be clusterip?

Sergey A. Osokin March 13, 2024 05:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 259
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready