Hello
I use the preinstalled Traefik (2.3.4) on the Scaleway Kubernetes product as ingress controller.
Everything like routing, Let's Encrypt certs etc works pretty well, except the global redirect from http to https.
I saw some pretty similar issues on this board, but I was not able to fix my issue with the given information. May somebody can help me to point out mine issue.
Basically the problem is that every time when I call an http URL I got redirected to https, but it add the internal port ":8443" behind the URL.
It ends then in an URL like https://myurl.com:8443
. This is not working because my NLB is listen on the port 443 and is redirecting everything to 8443 as port of Traefik.
When I call the https URL directly (understandably without the port ) then everything works as expected and I get a valid response with the certificate.
I ended with the following arguments for Traefik for now:
- --global.checknewversion
- --entryPoints.traefik.address=:9000
- --entryPoints.web.address=:8000
- --entryPoints.websecure.address=:8443
- --api.dashboard=true
- --ping=true
- --providers.kubernetesIngress.ingressClass=traefik-cert-manager
- --providers.kubernetescrd
- --providers.kubernetesingress
- --entryPoints.web.http.redirections.entryPoint.to=websecure
- --entryPoints.web.http.redirections.entryPoint.scheme=https
I also tried to set the entryPoint.to
to :443 but this also not worked and ended in the same behavior.
Can someone tell me what is wrong and why Traefik is adding the port behind instead of just routing the request to https?
Thank you.