Hello everyone,
Im exposing the dashboard using a NodePort service while deploying with kubernetes-crd.
The dashboard is accessible under [https://traefik-labs.thinkpad.tld:32443/dashboard/#/]
While trying to setup a to redirect from http to https using this middleware:
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: traefik-https-redirect
namespace: traefik
spec:
redirectScheme:
scheme: https
The redirect lose the 32443 port and the dashboard is no longer accessible.
I have tried also with a redirectregex middleware:
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: traefik-https-redirect
namespace: traefik
spec:
redirectRegex:
regex: ^http://(.*)
replacement: https://${1}
permanent: true
But it simply doesnt work.
Is there anyway to achieve this.
Thank you in advance.