Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubebox base uri #122

Open
lduparc opened this issue Apr 26, 2021 · 4 comments
Open

Kubebox base uri #122

lduparc opened this issue Apr 26, 2021 · 4 comments

Comments

@lduparc
Copy link

lduparc commented Apr 26, 2021

Hi,

How to define a base uri for kubebox when deploying under Kubernetes ?

Eg: https://mydomain.something.com/kubebox

When all is at / it's working but not with /kubebox.

Thanks,

@astefanutti
Copy link
Owner

That may depend on the Ingress controller that's configured on your cluster, and if it support target rewriting for path based routing. For example with the NGINX Ingress controller, the nginx.ingress.kubernetes.io/rewrite-target can be used, see https://kubernetes.io/docs/concepts/services-networking/ingress/.

Otherwise, it may be needed to add a way to specify the root location of the Kubebox reverse proxy, as discussed in https://serverfault.com/questions/562756/how-to-remove-the-path-with-an-nginx-proxy-pass.

@lduparc
Copy link
Author

lduparc commented Apr 26, 2021

Hi,

Using Istio I try to set a VirtualService with prefix: /kubebox and rewrite uri to / but kubebox UI is available without info (login dialog appear instead of automatically login to k8s api)

@lduparc
Copy link
Author

lduparc commented Apr 26, 2021

In fact problemn is related to server part, kubebox.js,

Rewrite is working but then it try to call /server, /master/api and /master/ on kubebox.js.

We need to be able to define a base_path for server.

@astefanutti
Copy link
Owner

Thanks for the feedback. Right, that'd be useful to be able to set the base location the reverse proxy is serving from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants