Sticky sessions for subpath

Hi,

for the backend of my cms I need to have sticky sessions. I managed to set these for my whole domain by setting these annotations:

apiVersion: v1
kind: Service
metadata:
  name: myservice
  annotations:
    traefik.ingress.kubernetes.io/affinity: "true"
    traefik.ingress.kubernetes.io/session-cookie-name: "sticky"

But I only need to have sticky sessions for a subpath “/admin”. Is it possible to set sticky sessions only for a subpath?.

I’m not sure with traeffic. But usually if instead of using a service you use a Ingress resource, that is layer 7 (http) and you can route different paths. Probably traeffic will let you chose on the path, I guess.

Contour, another Ingress controller, added that and I think it is per path (but not sure)

I also meet this problem. How to do next? :frowning_face: