App template
Qdrant
A vector database with an API key and data on a volume.
- Memory when idle
- about 20 MiB
- CI measures it once the app is ready and before any traffic. Leave room for more.
- Tested on
- x86 servers
Introduction
Qdrant is a vector database with a REST API, a gRPC API and a web dashboard.
This template runs one Qdrant instance behind your domain, with its data on a volume. Every request needs an API key that is generated at deploy time.
Values you provide
You don’t fill in anything when you deploy.
Made for you
These values are generated at deploy and kept in a Kubernetes Secret, shown as Secret/key.
- qdrant-secrets/api-key
Getting started
-
In Zeabur OSS, open the
qdrantservice. When Overview shows its replica as ready, the service is up. Its domain is on the Networking tab under Public domains; it is the domain you entered in the install form. -
Get the API key. Open Variables, click
qdrant-secretsunder From config files and secrets, and click the eye icon next toapi-key. Without Zeabur OSS, read Secretqdrant-secrets, keyapi-key, with kubectl:kubectl -n <namespace> get secret qdrant-secrets -o jsonpath='{.data.api-key}' | base64 -d -
Open
https://<your domain>/dashboardand enter the API key. -
Send the same key in the
api-keyheader on every REST call:curl https://<your domain>/collections --header 'api-key: <api-key>' -
The gRPC port (
6334) is not behind the domain. Pods in the same project reach REST atqdrant:6333and gRPC atqdrant:6334.
Configuration
Connect a client
Pass the API key to the client. For Python:
from qdrant_client import QdrantClient
client = QdrantClient(url="https://<your domain>:443", api_key="<api-key>")
See Security in the Qdrant docs.
Change the API key
On the service’s Variables tab, click qdrant-secrets, enter a new value for api-key, then review and apply. The running replica keeps the old value until you click Restart at the top of the service page. Update every client that uses the old key.
Troubleshooting
The page shows 502 or does not load
In Zeabur OSS, open the qdrant service. Check that Overview shows its replica as ready, then read the Logs tab. If the replica keeps restarting, open Deployments, then Events. If the events show OOMKilled, raise Maximum memory in Settings → Compute. See Adjust replicas, resources, and health checks and View logs, events, and usage, and open a terminal.
If the service is slow or keeps reconnecting, check the same things.
If the domain or its certificate stays pending, see Add public domains and HTTPS.
Resources
Each service is guaranteed the first amount and can use up to the second.
qdrant
Ports
6333, 6334
CPU
0.2 cores to 2 cores
Memory
512 MiB to 2 GiB
Technical details
This release
- Version
- v1.20.1-unprivileged
- Licence
- Apache-2.0
- Homepage
- qdrant.tech
- Source file
- templates/qdrant/template.yaml @ v0.6.3
Tested in CI
CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.
| Distribution | Platform | Kubernetes | Passed | Idle memory |
|---|---|---|---|---|
| kind | linux/amd64 | v1.37.0 | 16 MiB |
Security
The official image runs as an unprivileged user (UID 1000) with a read-only root filesystem, no service-account token and no extra Linux capabilities. Every Qdrant request needs the API key.
Known risks
Risk
The REST API and the web dashboard are public through the Ingress.
How it is handled
Every request needs the generated API key, except the health endpoints. Keep the key on your servers, and create JWT or read-only keys for other clients.
Risk
The gRPC port is not exposed through the Ingress.
How it is handled
Pods in the same namespace can reach REST on port 6333 and gRPC on port 6334, with the API key. From outside the cluster, use REST over the Ingress.
Risk
Outbound traffic is not limited, so a snapshot URL can point at private addresses.
How it is handled
Upload snapshots through the API, or add an egress NetworkPolicy that limits where Qdrant can fetch from.
What the cluster needs
Zeabur OSS suggests the components a cluster is missing. Without it, install them first.