Run QuestDB on Kubernetes
You can deploy QuestDB in a Kubernetes cluster using a StatefulSet and a persistent volume. We distribute QuestDB via Helm on ArtifactHub.
Prerequisites#
Get the QuestDB Helm chart#
Using the Helm client, add the official Helm chart repository:
Update the Helm index:
Run QuestDB#
Start a local cluster using minikube:
Then install the chart:
Finally, use the Kubernetes CLI to get the pod name:
Result:
| NAME | READY | STATUS | RESTARTS | AGE |
|---|---|---|---|---|
| my-questdb-0 | 1/1 | Running | 1 | 9m59s |
Querying QuestDB locally#
In order to run queries against your local instance of QuestDB, you can use port forwarding:
The following ports may also be used:
- 9000: REST API and Web Console
- 8812: Postgres
- 9009: InfluxDB line protocol