I am trying to test a basic whoami website using Traefik as my ingress handler in Kubernetes. TLS with Let's Encrypt works, but I get a 404 for all routes (on https with green lock), and the logs say:
time="2020-07-10T09:32:27Z" level=debug msg="Skipping Kubernetes event kind *v1.Service" providerName=kubernetes
time="2020-07-10T09:32:27Z" level=debug msg="Skipping Kubernetes event kind *v1.Endpoints" providerName=kubernetes
In order to setup Traefik and the whoami container, I apply the following YAML in order:
1 - The Traefik custom CRDs: (link below)
2 - the ClusterRole and Service Account creation: (link below)
3 - The settings and dynamic provider settings in a ConfigMap: (link below)
4 - The deployment and associated loadbalance service: (link below)
5 - The whoami app deployment and ClusterIP service: (link below)
6 - The middleware and IngressRoute for the whoami service: (link below)
At this point, Traefik seems to work and I can connect to the url with https, but I get the 404 page and none of the middleware headers are present. Clearly Traefik is getting the incoming connection, but it's not routing the request. But I'm not clear why.
(I'm doing everything in the default namespace intentionally, just as a learning exercise.)
If somebody can tell me why the request isn't routed, I'd be very grateful!
Thanks.