Unexpected request redirect behaviour in kubernetes #3589
Labels
area/provider/k8s/ingress
kind/bug/confirmed
a confirmed bug (reproducible).
priority/P2
need to be fixed in the future
status/5-frozen-due-to-age
Milestone
Do you want to request a feature or report a bug?
Bug
What did you do?
Deployed Traefik 1.6.3 to our organisation kubernetes cluster to use it for ingress. Trying to replace Nginx.
Some of our services require redirects and this is configured as annotations in their ingress kubernetes manifests.
When we did this using Nginx the following annotation did the job:
Traefik has a similar annotation available as described here:
We expected it to work in a similar fashion, as is indicated by the documentation, however the requests were not forwarded.
Much to our surprise after an amount of testing we found that enabling the ssl-redirect flag solves the problem:
The issue here is that either this is unexpected behaviour (that redirection doesn't work without the extra flag) or it is intended and therefore documentation should be updated accordingly.
I tried to provide an adequate level of detail without posting internal company data but please ask if you need more specific information or examples of any of the points mentioned in the issue.
What did you expect to see?
Executing the following:
curl --verbose -L -k --header 'Host: target.com' 'http://our.traefik.deployment.com'
should get us:What did you see instead?
Executing the following:
curl --verbose -L -k --header 'Host: target.com' 'http://our.traefik.deployment.com'
gets us:Output of
traefik version
: (What version of Traefik are you using?)What is your environment & configuration (arguments, toml, provider, platform, ...)?
Traefik config:
Kubernetes version:
Thank you for reading!
The text was updated successfully, but these errors were encountered: