Enabling sticky sessions on an ingress route

Hey folks! Trying out Traefik2.0, and I've got a question. I'm running K8s baremetal with metallb, that's all working sweet. I've been using Traefik1.7, and I'm looking to switch to 2.0. I'm defined an ingress route, let's assume it looks like this:

---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: example
spec:
  entryPoints:
    - https
  routes:
  - match: Host(`www.example.com`) && PathPrefix(`/`)
    kind: Rule
    services:
    - name: example
      port: 80
  tls:
    secretName: tlssecret

I would like to enable sticky sessions, I've tried the following:

---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: example
spec:
  entryPoints:
    - https
  routes:
  - match: Host(`www.example.com`) && PathPrefix(`/`)
    kind: Rule
    services:
    - name: example
       loadBalancer:
         sticky:
           cookie: {}
    port: 80
  tls:
    secretName: tlssecret

I have 4 pods that service example points at, and I can see from my traefik deployment logs that requests are still being round-robin'd between all of them for each time I refresh the page in my browser. Any thoughts?

Including an example of the Traefik logs:

10.244.5.1 - - [25/Sep/2019:23:40:13 +0000] "GET /login HTTP/2.0" 200 595 "-" "-" 785 "default-example-fea545ea95cd7057f047@kubernetescrd" "http://10.244.4.225:80" 0ms
10.244.5.1 - - [25/Sep/2019:23:40:14 +0000] "GET /assets/ui-example.af2c9719.js HTTP/2.0" 200 539 "-" "-" 787 "default-example-fea545ea95cd7057f047@kubernetescrd" "http://10.244.5.193:80" 0ms
10.244.5.1 - - [25/Sep/2019:23:40:14 +0000] "GET /assets/ui-example.b377ba3f.css HTTP/2.0" 200 539 "-" "-" 786 "default-example-fea545ea95cd7057f047@kubernetescrd" "http://10.244.5.192:80" 0ms
10.244.5.1 - - [25/Sep/2019:23:40:14 +0000] "GET /assets/img/touch-icon-ipad-retina.png HTTP/2.0" 200 5274 "-" "-" 789 "default-example-fea545ea95cd7057f047@kubernetescrd" "http://10.244.5.192:80" 0ms
10.244.5.1 - - [25/Sep/2019:23:40:14 +0000] "GET /assets/img/favicon.png HTTP/2.0" 200 5902 "-" "-" 788 "default-example-fea545ea95cd7057f047@kubernetescrd" "http://10.244.4.225:80" 1ms

Where my four pods are 10.244.4.225, 10.244.5.193, 10.244.5.192, and 10.244.4.225.

Thanks!

Hello,

Take a look at https://github.com/containous/traefik/issues/5460

For now, sticky are not available for k8s, it's in our plan.