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?