I am trying to setup ingress route to ensure my clients always hit the correct pod in a replicated situation. I don't want load balancing, for authentication purposes I need them to always use the pod they authenticated with. Here is my config, what I am doing wrong.
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: mainsite-server
namespace: development
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`college.net`)
priority: 20
services:
- name: mainsite-server
port: 80
sticky:
cookie:
httpOnly: false
name: dev-session
secure: true
sameSite: true
- kind: Rule
match: Host(`www.college.net`)
priority: 20
services:
- name: mainsite-server
port: 80
sticky:
cookie:
httpOnly: false
name: dev-session
secure: true
sameSite: true
tls:
domains:
- main: college.net
sans:
- www.college.net
secretName: college.net-tls
When I try to apply this config, k8s complains about an error but says "unknown" error. No help there.