druid
by HelmForge
Apache Druid distributed analytics database with coordinator, broker, historical, middlemanager, overlord, and router
About this chart
Apache Druid
Apache Druid is a high-performance, real-time analytics database designed for fast slice-and-dice analytics on large datasets. It is commonly used for user-facing analytic applications, BI dashboards, and real-time data exploration.
Features
- Modular Druid architecture - coordinator, broker, and router by default, with optional overlord, historical, and middlemanager
- Web console - router component serves the Druid web console
- PostgreSQL subchart - bundled metadata store with option for external database
- Bundled ZooKeeper - native ZooKeeper StatefulSet with option for external cluster
- Deep storage - local or S3-compatible (MinIO, AWS S3)
- Persistent volumes - segment cache (historical) and task storage (middlemanager)
- Health probes - startup and liveness on
/status/health, readiness on/status/selfDiscovered - Ingress support - configurable with
ingressClassName(traefik, nginx, etc.) - Gateway API support - optional HTTPRoute for the router/web console
- Dual-stack Services - optional
ipFamilyPolicy/ipFamilieson every Druid Service - External Secrets Operator - optional ExternalSecret projection for metadata and S3 credentials
- NetworkPolicy - optional ingress and egress controls for compatible CNIs
- Per-component scaling - independent replica counts and JVM tuning
Security Scan
Security scan: druid
| Framework | Score |
|---|---|
| MITRE + NSA + SOC2 | 83.000000% |
Security posture: acceptable.
The default scan keeps Druid writable paths and resource limits configurable instead of forcing a one-size-fits-all production profile. For hardened deployments, enable NetworkPolicy and set explicit CPU and memory requests and limits for every Druid component.
Install
Helm repository
helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install druid helmforge/druid -f values.yaml
OCI registry
helm install druid oci://ghcr.io/helmforgedev/helm/druid --version <version> -f values.yaml
Architecture
flowchart LR
client[Users and API clients] --> router[Router]
router --> broker[Broker]
broker --> historical[Historical]
coordinator[Coordinator] --> historical
overlord[Overlord] --> middle[MiddleManager]
middle --> deep[(S3 deep storage)]
historical --> deep
roles[Druid roles] --> metadata[(PostgreSQL metadata)]
roles --> zk[(ZooKeeper)]
Default Values
| Key | Default | Description |
|---|---|---|
global | {} | Helm ecosystem compatibility values |
commonAnnotations | {} | Annotations added to chart-owned resources; resource annotations take precedence |
image.repository | apache/druid | Druid container image |
image.tag | "39.0.0" | Image tag |
coordinator.enabled | true | Enable coordinator |
coordinator.replicaCount | 1 | Coordinator replicas |
coordinator.port | 8081 | Coordinator port |
coordinator.javaOpts | -Xms128m -Xmx256m | Coordinator JVM options |
overlord.enabled | false | Enable overlord for ingestion management |
overlord.port | 8090 | Overlord port |
broker.enabled | true | Enable broker |
broker.port | 8082 | Broker port |
broker.javaOpts | -Xms256m -Xmx512m | Broker JVM options |
router.enabled | true | Enable router (web console) |
router.port | 8888 | Router port |
historical.enabled | false | Enable historical segment serving |
historical.port | 8083 | Historical port |
historical.persistence.size | 10Gi | Segment cache volume size |
historical.persistence.retentionPolicy.whenDeleted | "" | PVC retention after StatefulSet deletion; Retain, Delete, or Kubernetes default |
historical.persistence.retentionPolicy.whenScaled | "" | PVC retention after scale-down; Retain, Delete, or Kubernetes default |
middleManager.enabled | false | Enable middle manager ingestion workers |
middleManager.port | 8091 | MiddleManager port |
middleManager.workerCapacity | 2 | Tasks per middle manager |
middleManager.persistence.size | 10Gi | Task storage volume size |
middleManager.persistence.retentionPolicy.whenDeleted | "" | PVC retention after StatefulSet deletion; Retain, Delete, or Kubernetes default |
middleManager.persistence.retentionPolicy.whenScaled | "" | PVC retention after scale-down; Retain, Delete, or Kubernetes default |
metadata.mode | subchart | Metadata mode: subchart or external |
zookeeperConfig.mode | subchart | ZooKeeper mode: subchart or external |
deepStorage.type | local | Deep storage: local or s3 |
service.type | ClusterIP | Router service type |
service.port | 80 | Router service port |
service.ipFamilyPolicy | omitted | Optional Kubernetes Service IP family policy |
service.ipFamilies | omitted | Optional ordered Service IP families |
serviceAccount.automountServiceAccountToken | false | Mount Kubernetes API credentials into workload Pods |
ingress.enabled | false | Enable ingress |
ingress.ingressClassName | traefik | Ingress class |
gatewayAPI.enabled | false | Enable Gateway API HTTPRoute for the router |
externalSecrets.enabled | false | Render ExternalSecret resources for secret material |
networkPolicy.enabled | false | Render NetworkPolicy resources |
podSecurityContext.fsGroup | 1000 | Shared filesystem group for Druid volumes |
securityContext.runAsNonRoot | true | Run Druid containers as a non-root user |
postgresql.enabled | true | Enable PostgreSQL subchart |
zookeeper.enabled | true | Enable bundled ZooKeeper |
zookeeper.persistence.retentionPolicy.whenDeleted | "" | PVC retention after StatefulSet deletion; Retain, Delete, or Kubernetes default |
zookeeper.persistence.retentionPolicy.whenScaled | "" | PVC retention after scale-down; Retain, Delete, or Kubernetes default |
PVC retention policies require Kubernetes 1.27 or later. On Kubernetes 1.26,
enable the StatefulSetAutoDeletePVC feature gate on both the API server and
controller manager.
Druid 39.0.0 upgrade notes
This chart tracks Apache Druid 39.0.0. Before upgrading persistent clusters,
review the upstream release notes
and upgrade notes.
Important upstream changes include:
- The official image supplies Java 25 as the required container runtime.
- The ZooKeeper-based
remotetask runner was removed in Druid 38. Existing overrides must usehttpRemoteor omitdruid.indexer.runner.typeto use its default. - Experimental Catalog DDL statements (
CREATE/ALTER) can be enabled viadruid.sql.planner.enableCatalogDdl. - Kafka supervisor header-based filtering (
headerBasedFilterConfig) is supported to reduce ingestion overhead. - Native batch ingestion emits warnings and metrics (
ingest/segments/oversized) for oversized segment partitions.
External Metadata Storage
postgresql:
enabled: false
metadata:
mode: external
external:
type: postgresql
host: postgres.example.com
port: 5432
name: druid
username: druid
password: my-password
External ZooKeeper
zookeeper:
enabled: false
zookeeperConfig:
mode: external
external:
hosts: "zk1.example.com:2181,zk2.example.com:2181,zk3.example.com:2181"
S3 Deep Storage
deepStorage:
type: s3
s3:
bucket: my-druid-bucket
baseKey: druid/segments
region: us-east-1
accessKey: AKIAIOSFODNN7EXAMPLE
secretKey: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
For MinIO or S3-compatible storage:
deepStorage:
type: s3
s3:
bucket: druid
baseKey: segments
region: us-east-1
endpointUrl: http://minio.minio.svc:9000
accessKey: minioadmin
secretKey: minioadmin
Ingress
ingress:
enabled: true
ingressClassName: traefik # or nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- host: druid.example.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: druid-tls
hosts:
- druid.example.com
Gateway API
Gateway API support is opt-in and renders an HTTPRoute to the router Service.
The chart does not create a Gateway; reference a shared Gateway managed by
your platform team.
gatewayAPI:
enabled: true
parentRefs:
- name: shared-gateway
namespace: gateway-system
sectionName: https
hostnames:
- druid.example.com
paths:
- type: PathPrefix
value: /
Dual-stack Services
Dual-stack fields are omitted by default so Kubernetes inherits the cluster
defaults. Set service.ipFamilyPolicy when running in IPv6 or dual-stack
clusters:
service:
ipFamilyPolicy: PreferDualStack
External Secrets Operator
ExternalSecret rendering is opt-in. Set the chart's existingSecret field to
the same Secret that External Secrets Operator will create, preventing drift
between chart-managed and externally managed credentials.
metadata:
mode: external
external:
existingSecret: druid-metadata
deepStorage:
type: s3
s3:
bucket: druid-segments
existingSecret: druid-s3
externalSecrets:
enabled: true
secretStoreRef:
name: platform-secrets
kind: ClusterSecretStore
metadata:
enabled: true
data:
- secretKey: password
remoteRef:
key: druid/metadata
property: password
deepStorage:
enabled: true
data:
- secretKey: access-key
remoteRef:
key: druid/s3
property: access-key
- secretKey: secret-key
remoteRef:
key: druid/s3
property: secret-key
Security context
Druid workload containers run as UID/GID 1000 by default with privilege
escalation disabled, all Linux capabilities dropped, and the runtime default
seccomp profile. The prepare-dirs init container runs as root only to create
and chown writable Druid directories.
NetworkPolicy
NetworkPolicy is opt-in because enforcement depends on the cluster CNI. When enabled, ingress defaults to same-namespace traffic on Druid component ports. Egress rules are optional and can allow DNS, same-namespace dependencies, HTTP, HTTPS, and extra peers:
networkPolicy:
enabled: true
ingress:
allowSameNamespace: true
egress:
enabled: true
allowDNS: true
allowSameNamespace: true
allowHTTPS: true
Extra Runtime Properties
Each component supports extraProperties for additional Druid runtime configuration:
broker:
extraProperties: |
druid.broker.http.numConnections=20
druid.server.http.numThreads=40
historical:
extraProperties: |
druid.segmentCache.locations=[{"path":"/opt/druid/var/druid/segment-cache","maxSize":10737418240}]
Configuration validation
The chart fails before resource creation when bundled and external dependency modes conflict, when external PostgreSQL or ZooKeeper endpoints are incomplete, when S3 mode lacks a bucket or credentials, or when Ingress and Gateway API routes do not have an enabled Router and required routing references.
Run the same render checks locally before an upgrade:
helm lint --strict charts/druid
helm template druid charts/druid -f values.yaml >/dev/null
Troubleshooting
List the role Pods and inspect rollout state:
kubectl get pods,svc -l app.kubernetes.io/instance=druid
kubectl get events --sort-by=.lastTimestamp
Inspect the Router and a selected Druid role when discovery or queries fail:
kubectl logs deployment/druid-druid-router --tail=200
kubectl logs statefulset/druid-druid-coordinator --tail=200
For dependency failures, verify that the configured PostgreSQL and ZooKeeper Services are reachable and that the referenced Secret contains the documented keys. For S3 failures, verify bucket access and the endpoint TLS trust chain.
Examples
- Simple development deployment
- S3-backed production deployment
- External metadata and ZooKeeper services
- Gateway API with NetworkPolicy
- External Secrets with S3 deep storage
Architecture Guides
- Architecture
- Storage and secrets
- Networking and security
Deploy druid with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has druid 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartdruid is pinned at v1.4.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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