I already saw a thread here with the configuration for nginx. And saw that in the documentation of OH3.
Could anyone point me to how to configure the traefik kubernetes ingress in a k3s cluster?
I tried that:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: openhab3
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/auth-type: "basic"
traefik.ingress.kubernetes.io/auth-secret: "dirk"
traefik.ingress.kubernetes.io/auth-response-headers: authorization
traefik.ingress.kubernetes.io/custom-response-headers: |
Set-Cookie: X-OPENHAB-AUTH-HEADER=1
Access-Control-Allow-Origin: * always
Access-Control-Allow-Headers: Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range$
Access-Control-Allow_Credentials: 'true' always
Access-Control-Allow-Methods: POST, GET, HEAD, OPTIONS, PUT, DELETE
But looks like I have a typo somewhere or missed something?