druid

by HelmForge

Helm chartv1.4.2App 39.0.0Apache-2.0Verified publisher

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 / ipFamilies on 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

FrameworkScore
MITRE + NSA + SOC283.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

KeyDefaultDescription
global{}Helm ecosystem compatibility values
commonAnnotations{}Annotations added to chart-owned resources; resource annotations take precedence
image.repositoryapache/druidDruid container image
image.tag"39.0.0"Image tag
coordinator.enabledtrueEnable coordinator
coordinator.replicaCount1Coordinator replicas
coordinator.port8081Coordinator port
coordinator.javaOpts-Xms128m -Xmx256mCoordinator JVM options
overlord.enabledfalseEnable overlord for ingestion management
overlord.port8090Overlord port
broker.enabledtrueEnable broker
broker.port8082Broker port
broker.javaOpts-Xms256m -Xmx512mBroker JVM options
router.enabledtrueEnable router (web console)
router.port8888Router port
historical.enabledfalseEnable historical segment serving
historical.port8083Historical port
historical.persistence.size10GiSegment 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.enabledfalseEnable middle manager ingestion workers
middleManager.port8091MiddleManager port
middleManager.workerCapacity2Tasks per middle manager
middleManager.persistence.size10GiTask 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.modesubchartMetadata mode: subchart or external
zookeeperConfig.modesubchartZooKeeper mode: subchart or external
deepStorage.typelocalDeep storage: local or s3
service.typeClusterIPRouter service type
service.port80Router service port
service.ipFamilyPolicyomittedOptional Kubernetes Service IP family policy
service.ipFamiliesomittedOptional ordered Service IP families
serviceAccount.automountServiceAccountTokenfalseMount Kubernetes API credentials into workload Pods
ingress.enabledfalseEnable ingress
ingress.ingressClassNametraefikIngress class
gatewayAPI.enabledfalseEnable Gateway API HTTPRoute for the router
externalSecrets.enabledfalseRender ExternalSecret resources for secret material
networkPolicy.enabledfalseRender NetworkPolicy resources
podSecurityContext.fsGroup1000Shared filesystem group for Druid volumes
securityContext.runAsNonRoottrueRun Druid containers as a non-root user
postgresql.enabledtrueEnable PostgreSQL subchart
zookeeper.enabledtrueEnable 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 remote task runner was removed in Druid 38. Existing overrides must use httpRemote or omit druid.indexer.runner.type to use its default.
  • Experimental Catalog DDL statements (CREATE / ALTER) can be enabled via druid.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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdruid is pinned at v1.4.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