How to configure sticky session in Kong Ingress Controller?

How to configure sticky session in Kong Ingress Controller?

https://github.com/Kong/kong/pull/3472

https://github.com/Kong/docs.konghq.com/blob/master/app/1.2.x/loadbalancing.md#balancing-algorithms

I found some pull requests and documentation about the hash-based algorithm over weighted round robin, however it is still not clear that where exactly we should change these values.

Is there any doc which clearly tells how to configure sticky session in Kong?

Hello @karthikeayan,

Welcome to Kong Nation.
To configure stick session in Kong Ingress Controller, you need to use KongIngress resource to specify your sticky behavior in the upstream section. Then annotate your Kubernetes service for which you need sticky sessions.

The following guide will help you out on how to use KongIngress resource:

Also, please take a look at the concept doc for understanding how all the pieces fits together: