replicatedhq / kots

KOTS provides the framework, tools and integrations that enable the delivery and management of 3rd-party Kubernetes applications, a.k.a. Kubernetes Off-The-Shelf (KOTS) Software.
https://kots.io
Apache License 2.0
901 stars 90 forks source link

KOTS Admin Console should support running under a subpath #646

Open nathan-mellis opened 4 years ago

nathan-mellis commented 4 years ago

I would like to be able to expose the KOTS admin console under a subpath of the main domain that hosts my application. Something like https://path.to.product/admin-console, but the front-end is currently coded so that all links to CSS, JavaScript, etc. are prefixed with a slash (/) so that they always request from the root of the domain.

Supporting this also helps solve the issue I filed in ticket #645. It would provide a way to expose the admin console using the existing application's DNS and TLS.

dexhorthy commented 4 years ago

cc @marccampbell

dexhorthy commented 4 years ago

Questions so far for kots team: Does this get configured by a kots CLI flag? Or pulled from a configmap? Or set in kind: Application YAML? or kURL spec?

divolgin commented 4 years ago

@nathan-mellis can you provide some details about how traffic is routed to your application? we are trying to figure out what options are available to us for routing requests.

nathan-mellis commented 4 years ago

@divolgin we are (or will be) using standard Kubernetes Ingress to route a HTTP subpath to a Kubernetes service.

divolgin commented 4 years ago

@nathan-mellis is this the proxy setup by kURL or something you will be configuring? Also @dexhorthy , if you have any design ideas, feel free to share.

nathan-mellis commented 4 years ago

@divolgin No. We're not using kURL yet. This is the completely standard NGINX Ingress Controller: https://kubernetes.github.io/ingress-nginx/

chitender commented 3 years ago

just checkin in, is there any update on this?

ddvdozuki commented 1 year ago

Is there any update to this? I have a need to route a TLS terminated nginx ingress controller to the admin dashboard but for the life of me i cannot figure out how to tell kotsadm to append /dashboard to the urls it generates.