providers/proxy: add traefik.ingress.kubernetes.io/router.tls annotation for ingress

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-20 22:24:42 +01:00
parent eca2ef20d0
commit dfbf7027bc
1 changed files with 3 additions and 0 deletions

View File

@ -89,8 +89,11 @@ class IngressReconciler(KubernetesObjectReconciler[V1Ingress]):
# goes to the same pod
"nginx.ingress.kubernetes.io/affinity": "cookie",
"traefik.ingress.kubernetes.io/affinity": "true",
# Buffer sizes for large headers with JWTs
"nginx.ingress.kubernetes.io/proxy-buffers-number": "4",
"nginx.ingress.kubernetes.io/proxy-buffer-size": "16k",
# Ensure ingress can receive TLS traffic
"traefik.ingress.kubernetes.io/router.tls": "true",
}
annotations.update(self.controller.outpost.config.kubernetes_ingress_annotations)
return annotations