qdrant-helm icon indicating copy to clipboard operation
qdrant-helm copied to clipboard

How to set base url?

Open PaulinaPacyna opened this issue 2 years ago • 4 comments

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.

PaulinaPacyna avatar Dec 18 '23 15:12 PaulinaPacyna

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.

bashofmann avatar Dec 19 '23 12:12 bashofmann

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?

PylotLight avatar Oct 15 '24 12:10 PylotLight

Any solutions as of yet?

ZainyAct avatar Nov 24 '24 16:11 ZainyAct

@ZainyAct I've resolve this issue for our internal version using a combination of rebuilding frontend from source with build": "vite build --base './'", And rewriting /dashboard/collections type paths to /collections via our istio service mesh.

PylotLight avatar Nov 25 '24 01:11 PylotLight