'Nginx Ingress Cookie-based routing

Do you know if it's possible to use Nginx Ingress and route traffic based on a cookie?

Example: Host mydomain.com, if cookie OLD exists it routes to service1, if not service2.



Solution 1:[1]

I guess the feature you are looking for is called "Sticky Sessions" and yes, it is supported by Nginx.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Fritz Duchardt