Open Source
All templates and components

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

  1. In Zeabur OSS, open the qdrant service. 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.

  2. Get the API key. Open Variables, click qdrant-secrets under From config files and secrets, and click the eye icon next to api-key. Without Zeabur OSS, read Secret qdrant-secrets, key api-key, with kubectl:

    kubectl -n <namespace> get secret qdrant-secrets -o jsonpath='{.data.api-key}' | base64 -d
    
  3. Open https://<your domain>/dashboard and enter the API key.

  4. Send the same key in the api-key header on every REST call:

    curl https://<your domain>/collections --header 'api-key: <api-key>'
    
  5. The gRPC port (6334) is not behind the domain. Pods in the same project reach REST at qdrant:6333 and gRPC at qdrant: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

Tested in CI

CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.

DistributionPlatformKubernetesPassedIdle memory
kindlinux/amd64v1.37.016 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

  1. 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.

  2. 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.

  3. 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.