questdb

by HelmForge

Helm chartv1.2.2App 10.2.0Apache-2.0Verified publisher

Production-ready standalone QuestDB with secure authentication, persistence and observability.

About this chart

QuestDB Helm chart

QuestDB is a high-performance open-source database for time-series and real-time analytics. This chart deploys one hardened QuestDB OSS instance with durable storage, secure generated credentials, External Secrets support, network isolation and optional Prometheus integration.

Features and architecture

  • fixed one-replica StatefulSet matching the QuestDB OSS single-node model;
  • retained persistent storage for the complete /var/lib/questdb root;
  • generated, existing, or External Secrets-managed protocol credentials;
  • HTTP, PostgreSQL wire, optional legacy ILP TCP, and internal metrics Services;
  • optional TLS-terminated Ingress, Gateway API HTTPRoute, and ServiceMonitor;
  • per-protocol NetworkPolicy and a restricted, non-root security context.

See DESIGN.md for the Mermaid topology, ownership boundaries, and intentional limitations.

Install

helm install questdb oci://ghcr.io/helmforgedev/charts/questdb \
  --namespace questdb --create-namespace

The default installation creates and retains random PostgreSQL and HTTP passwords. Read the HTTP password with:

kubectl get secret -n questdb questdb-questdb \
  -o jsonpath='{.data.http-password}' | base64 -d

Port-forward the authenticated Web Console and API:

kubectl port-forward -n questdb service/questdb-questdb 9000:9000

Open http://localhost:9000 and authenticate as admin with the generated HTTP password.

Configuration

Keep persistence.enabled=true for durable installations. Use persistence.existingClaim to attach a pre-provisioned or restored volume, and keep questdb.existingSecret, pgPasswordKey, and httpPasswordKey stable across upgrades. questdb.serverConfig accepts documented QuestDB properties; secret values belong in a Secret and questdb.envFrom, not plain values.

The chart distinguishes protocol exposure from application listeners: service.pgWireEnabled and service.ilpTcpEnabled control Service ports while QuestDB continues to own its internal protocol configuration. Review Configuration for all supported value groups.

Examples

  • Simple installation
  • Production installation
  • External Secrets

Security Scan

Security scan results use the same Kubescape policy set as HelmForge CI.

Security Scan: questdb

FrameworkScore
MITRE100.00%
NSA100.00%
SOC 2100.00%
Aggregate resource score100.00%

Kubescape reported zero failed resources at critical, high, medium or low severity for the default rendered workload.

Production contract

  • QuestDB OSS is singleton software. This chart always deploys one replica and does not claim HA, replication or automated failover.
  • The official image is pinned by tag and multi-architecture OCI digest.
  • /var/lib/questdb is persistent and the chart-created PVC is retained.
  • NFS and distributed filesystems are unsupported for QuestDB database storage.
  • Native transport TLS is unavailable in OSS. Keep services internal or add TLS termination through Ingress, Gateway API or a service mesh.
  • Production capacity planning starts at 4 CPU and 8Gi memory and requires fast storage sized for workload-specific IOPS.

Credentials

Use an existing Secret with keys pg-password and http-password:

questdb:
  existingSecret: questdb-auth

External Secrets Operator uses the canonical HelmForge items[].spec contract; see examples/external-secrets.yaml.

Protocols

InterfacePortDefaultNotes
HTTP, REST, Web Console, ILP HTTP, QWP9000enabledPreferred ingestion path
PostgreSQL wire8812enabledOSS transport has no native TLS
Legacy ILP TCP9009disabledEnable with service.ilpTcpEnabled
Health and metrics9003internal/status; /metrics when enabled

Observability

metrics:
  enabled: true
  serviceMonitor:
    enabled: true
networkPolicy:
  metricsFrom:
    - namespaceSelector:
        matchLabels:
          kubernetes.io/metadata.name: monitoring

When NetworkPolicy is enabled, metricsFrom is required with a ServiceMonitor so the Prometheus namespace can reach port 9003.

Backup and restore

For a consistent OSS backup, execute CHECKPOINT CREATE, copy or snapshot the volume, and then execute CHECKPOINT RELEASE. Restore into the same QuestDB major version, verify the copy, and test upgrades separately. Raw live-volume snapshots are not claimed to be consistent.

Upgrade safety

Back up and verify the retained database before upgrading. Pin the target chart version explicitly, review rendered changes, and preserve the PVC, authentication Secret contract, UID/GID, and protocol settings. Use --reuse-values only when you have audited old overrides against current defaults; with --reset-values, restate every non-default persistence, Secret, storage, and exposure setting.

Never replace a retained PVC or generated Secret merely to complete an upgrade. Restore and test in an isolated namespace before combining a chart upgrade with a QuestDB major-version or storage migration.

Troubleshooting

Inspect the StatefulSet rollout, Pod events, and QuestDB logs first. If the Pod cannot mount the database, confirm that the selected PVC contains the complete /var/lib/questdb tree and is writable by UID/GID 10001. Authentication errors usually indicate a changed Secret name or key contract. For connectivity issues, verify the relevant Service port and matching NetworkPolicy peer list; HTTP health on port 9003 does not prove PostgreSQL or ILP reachability.

Documentation

  • Configuration
  • Operations
  • Security
  • Production example
  • Research
  • Design

Uninstall

helm uninstall questdb --namespace questdb

The default PVC and generated Secret remain because both contain recovery material. Delete them only after verifying a backup and confirming data loss is intended.

Deploy questdb with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has questdb on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartquestdb is pinned at v1.2.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply