dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Provide a config option to specify the statics path when running the Dashboard on a subpath using an Ingress rule (and controller)

Open michaelajr opened this issue 6 years ago • 4 comments
trafficstars

Right now if you expose the Dashboard via an Ingress Controller and Ingress rule, and want to run the Dashboard on a subpath like /dashboard, statics can't load. This is because the URL for statics are embedded in the HTML as coming from the root. Most UI applications provide a way to start their app with a flag that specifies the application root so URLs are constructed properly in the page. This would be really nice to have for the Dashboard.

michaelajr avatar Mar 22 '19 15:03 michaelajr

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale

fejta-bot avatar Jun 20 '19 16:06 fejta-bot

/remove-lifecycle stale

michaelajr avatar Jun 20 '19 16:06 michaelajr

/lifecycle frozen

@michaelajr Would you be willing to work on that?

maciaszczykm avatar Jun 27 '19 09:06 maciaszczykm

Would this solve: https://github.com/kubernetes/dashboard/issues/5017? If so then it's a great idea!

webcoderz avatar Aug 14 '22 22:08 webcoderz

I took a different approach with rewrite/redirect on the Ingress resource, hard to find, not documented anywhere & took me a whole week to figure out (barely know much of Ingress) https://github.com/kubernetes/dashboard/issues/7616#issuecomment-1573320650

luchillo17 avatar Jun 02 '23 08:06 luchillo17

See my comment: https://github.com/kubernetes/dashboard/issues/8053#issuecomment-1979494075

floreks avatar Mar 05 '24 19:03 floreks