druid

by asdf2014

Helm chartv37.0.2App 37.0.0Apache-2.0Verified publisher

Apache Druid is a high performance real-time analytics database.

About this chart

Helm Chart for Apache Druid

Quick Start

Apache Druid Helm Chart can be used to deploy a Druid cluster on Kubernetes with following commands:

# Add repository
$ helm repo add druid-helm https://asdf2014.github.io/druid-helm/

# Install chart
$ helm install my-druid druid-helm/druid --version 37.0.2

Install Local Chart

In addition to the above method, also you can install this local Druid Helm Chart.

First, you need update the dependencies:

$ cd charts/druid/
$ helm dependency update .

To install the Druid Chart into your Kubernetes cluster:

$ helm install druid . --namespace dev --create-namespace

After installation succeeds, you can get a status of Chart:

$ helm status druid -n dev 

If you want to delete your Chart, use this command:

$ helm uninstall druid -n dev

Helm Chart Configuration

The following table lists the configurable parameters of the Druid Helm Chart and their default values.

Common

ParameterDescriptionDefault
image.repositorycontainer image nameapache/druid
image.tagcontainer image tag37.0.0
image.pullPolicycontainer pull policyIfNotPresent
image.pullSecretsimage pull secrets for private repository[]
configMap.enabledenable druid configuration as configmaptrue
configVarsdruid configuration variables for all components``
gCloudStorage.enabledlook for secret to set google cloud credentialsfalse
gCloudStorage.secretNamesecretName to be mounted as google cloud credentialsfalse
rbac.createCreate roles and roleBindings for service Accountstrue

Router

ParameterDescriptionDefault
router.enabledenable routertrue
router.namerouter component namerouter
router.replicaCountrouter node replicas (deployment)1
router.portport of router component8888
router.serviceTypeservice type for serviceClusterIP
router.serviceAccount.createCreate a service account for router servicetrue
router.serviceAccount.nameService account nameDerived from the name of service
router.serviceAccount.annotationsAnnotations applied to created service account{}
router.serviceAccount.labelsLabels applied to created service account{}
router.serviceAccount.automountServiceAccountTokenAutomount API credentials for the Service Accounttrue
router.resourcesrouter node resources requests & limits{}
router.podAnnotationsrouter Deployment annotations{}
router.nodeSelectornode labels for router pod assignment{}
router.tolerationsrouter tolerations[]
router.configrouter private config such as JAVA_OPTS
router.affinityrouter affinity policy{}
router.ingress.enabledenable ingressfalse
router.ingress.hostshosts for the router api[ "chart-example.local" ]
router.ingress.pathpath of the router api/
router.ingress.annotationsannotations for the router api ingress{}
router.ingress.tlsTLS configuration for the ingress[]

Broker

ParameterDescriptionDefault
broker.enabledenable brokertrue
broker.namebroker component namebroker
broker.replicaCountbroker node replicas (deployment)1
broker.portport of broker component8082
broker.serviceAccount.createCreate a service account for broker servicetrue
broker.serviceAccount.nameService account nameDerived from the name of service
broker.serviceAccount.annotationsAnnotations applied to created service account{}
broker.serviceAccount.labelsLabels applied to created service account{}
broker.serviceAccount.automountServiceAccountTokenAutomount API credentials for the Service Accounttrue
broker.serviceTypeservice type for serviceClusterIP
broker.resourcesbroker node resources requests & limits{}
broker.podAnnotationsbroker deployment annotations{}
broker.nodeSelectorNode labels for broker pod assignment{}
broker.tolerationsbroker tolerations[]
broker.configbroker private config such as JAVA_OPTS
broker.affinitybroker affinity policy{}
broker.ingress.enabledenable ingressfalse
broker.ingress.hostshosts for the broker api[ "chart-example.local" ]
broker.ingress.pathpath of the broker api/
broker.ingress.annotationsannotations for the broker api ingress{}
broker.ingress.tlsTLS configuration for the ingress[]

Overlord

ParameterDescriptionDefault
overlord.enabledenable overlordtrue
overlord.nameoverlord component nameoverlord
overlord.replicaCountoverlord node replicas (deployment)1
overlord.portport of overlord component8081
overlord.serviceTypeservice type for serviceClusterIP
overlord.serviceAccount.createCreate a service account for overlord servicetrue
overlord.serviceAccount.nameService account nameDerived from the name of service
overlord.serviceAccount.annotationsAnnotations applied to created service account{}
overlord.serviceAccount.labelsLabels applied to created service account{}
overlord.serviceAccount.automountServiceAccountTokenAutomount API credentials for the Service Accounttrue
overlord.resourcesoverlord node resources requests & limits{}
overlord.podAnnotationsoverlord Deployment annotations{}
overlord.nodeSelectornode labels for overlord pod assignment{}
overlord.tolerationsoverlord tolerations[]
overlord.configoverlord private config such as JAVA_OPTS
overlord.affinityoverlord affinity policy{}
overlord.ingress.enabledenable ingressfalse
overlord.ingress.hostshosts for the overlord api[ "chart-example.local" ]
overlord.ingress.pathpath of the overlord api/
overlord.ingress.annotationsannotations for the overlord api ingress{}
overlord.ingress.tlsTLS configuration for the ingress[]

Coordinator

ParameterDescriptionDefault
coordinator.enabledenable coordinatortrue
coordinator.namecoordinator component namecoordinator
coordinator.replicaCountcoordinator node replicas (deployment)1
coordinator.portport of coordinator component8081
coordinator.serviceType

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 v37.0.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