Ask HN: Kubernetes ingress re-write for FEs

1 points by yonz ↗ HN
What is the proper way to set rewrite rules that can handles requests after first load, For example <HTML> relative path requests for assets or hrefs?

Lets say you have homebase.com/kubedash and homebase.com/qdrant, what is the best practice for supporting these two services.

- homebase.com/qdrant --> qdrant:port/

- homebase.com/qdrant/dashboard --> qdrant:port/dashboard

- homebase.com/kubedash --> kubernetes-dashboard:80/

The problem i run into is that each of the services load an HTML with relative paths to the 're-written' request. In other words qdrant:port/dashboard HTML will try to fetch `homebase.com/dashboard/assets` but your re-write rule would only handle it if its, `homebase.com/qdrant/dashboard/assets`

There are many answers and suggestions but i've worked through most and have realized that either your href or your assets or something else will break it. The solution I have found is to use subdomains.

What is the right way to do this? This feels like the basic feature for ingress controller.

0 comments

[ 5.2 ms ] story [ 12.3 ms ] thread

No comments yet.