Skip to content

Dashboard fails when accessed through kube proxy #9635

@vladimirtiukhtin

Description

@vladimirtiukhtin

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?

I run traefik with insecure dashboard (I however do not expose traefik port through a load balancer). Then I do kube proxy which opens kubernetes api on some localhost port. After that I go to browser and type

http://localhost:8001/api/v1/namespaces/kube-system/services/http:traefik:api/proxy/dashboard/

which indeed opens a dashboard but with many red colored messages like the server could not find the requested resource
If Iook at the logs I can clearly see that dashboard itself cuts off the whole path to just

http://localhost:8001/api/overview

which obviously gets directed to kubernetes rather than traefik

What did you see instead?

Lots of red

What version of Traefik are you using?

2.8.8

What is your environment & configuration?

--api.insecure=true --api.dashboard=true

If applicable, please paste the log output in DEBUG level

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions