qdrant / qdrant-helm

Apache License 2.0
104 stars 52 forks source link

How to set base url? #120

Open PaulinaPacyna opened 11 months ago

PaulinaPacyna commented 11 months ago

Hi, I am using the https://github.com/qdrant/qdrant-helm chart to deploy the qdrant application on kubernetes cluster. The dasjboard is correctly displayed under localhost:6333/dashboard, using port-forwarding to the pod created by statefulset. I would like to expose the application under a url with a VirtualService. However, the app cannot be hosted at / path (it is reserved), so I am mapping the requests coming from /ABC/DEF/ to /.

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: qdrant
spec:
  hosts:
  - '*'
  http:
  - match:
    - uri:
        prefix: "/ABC/DEF/"
    rewrite:
      uri: "/"
    route:
    - destination:
        host: qdrant.db.svc.cluster.local
        port:
           number: 6333

The app seems to be partly visible. /ABC/DEF displays version info ({"title":"qdrant - vector search engine", "version":"1.7.2"} However /ABC/DEF/dashboard loads a blank page, with an icon and "Qdrant Web UI" in the tab title. As far as I managed to debug this issue, the app tries to query the /dashboard, /telemetry, and /collections endpoints to load the data and fails. Is there a possibility to set the base url in the application, so the app knows that it must refer to /ABC/DEF/dashboard, /ABC/DEF/telemetry, and /ABC/DEF/collections? Thank you in advance.

bashofmann commented 11 months ago

I had a quick look at https://github.com/qdrant/qdrant-web-ui and the base path looks to be hard-coded there to /dashboard/ without a way to change this afterwards.

There is an open ticket for this: https://github.com/qdrant/qdrant-web-ui/issues/94.

PylotLight commented 1 month ago

I'm still stuck on this one as well, is there a way to rewrite with uri/bootstrap config in the configmap to use a custom host path prefix?

ZainyAct commented 3 hours ago

Any solutions as of yet?