druid
by asdf2014
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
| Parameter | Description | Default |
|---|---|---|
image.repository | container image name | apache/druid |
image.tag | container image tag | 37.0.0 |
image.pullPolicy | container pull policy | IfNotPresent |
image.pullSecrets | image pull secrets for private repository | [] |
configMap.enabled | enable druid configuration as configmap | true |
configVars | druid configuration variables for all components | `` |
gCloudStorage.enabled | look for secret to set google cloud credentials | false |
gCloudStorage.secretName | secretName to be mounted as google cloud credentials | false |
rbac.create | Create roles and roleBindings for service Accounts | true |
Router
| Parameter | Description | Default |
|---|---|---|
router.enabled | enable router | true |
router.name | router component name | router |
router.replicaCount | router node replicas (deployment) | 1 |
router.port | port of router component | 8888 |
router.serviceType | service type for service | ClusterIP |
router.serviceAccount.create | Create a service account for router service | true |
router.serviceAccount.name | Service account name | Derived from the name of service |
router.serviceAccount.annotations | Annotations applied to created service account | {} |
router.serviceAccount.labels | Labels applied to created service account | {} |
router.serviceAccount.automountServiceAccountToken | Automount API credentials for the Service Account | true |
router.resources | router node resources requests & limits | {} |
router.podAnnotations | router Deployment annotations | {} |
router.nodeSelector | node labels for router pod assignment | {} |
router.tolerations | router tolerations | [] |
router.config | router private config such as JAVA_OPTS | |
router.affinity | router affinity policy | {} |
router.ingress.enabled | enable ingress | false |
router.ingress.hosts | hosts for the router api | [ "chart-example.local" ] |
router.ingress.path | path of the router api | / |
router.ingress.annotations | annotations for the router api ingress | {} |
router.ingress.tls | TLS configuration for the ingress | [] |
Broker
| Parameter | Description | Default |
|---|---|---|
broker.enabled | enable broker | true |
broker.name | broker component name | broker |
broker.replicaCount | broker node replicas (deployment) | 1 |
broker.port | port of broker component | 8082 |
broker.serviceAccount.create | Create a service account for broker service | true |
broker.serviceAccount.name | Service account name | Derived from the name of service |
broker.serviceAccount.annotations | Annotations applied to created service account | {} |
broker.serviceAccount.labels | Labels applied to created service account | {} |
broker.serviceAccount.automountServiceAccountToken | Automount API credentials for the Service Account | true |
broker.serviceType | service type for service | ClusterIP |
broker.resources | broker node resources requests & limits | {} |
broker.podAnnotations | broker deployment annotations | {} |
broker.nodeSelector | Node labels for broker pod assignment | {} |
broker.tolerations | broker tolerations | [] |
broker.config | broker private config such as JAVA_OPTS | |
broker.affinity | broker affinity policy | {} |
broker.ingress.enabled | enable ingress | false |
broker.ingress.hosts | hosts for the broker api | [ "chart-example.local" ] |
broker.ingress.path | path of the broker api | / |
broker.ingress.annotations | annotations for the broker api ingress | {} |
broker.ingress.tls | TLS configuration for the ingress | [] |
Overlord
| Parameter | Description | Default |
|---|---|---|
overlord.enabled | enable overlord | true |
overlord.name | overlord component name | overlord |
overlord.replicaCount | overlord node replicas (deployment) | 1 |
overlord.port | port of overlord component | 8081 |
overlord.serviceType | service type for service | ClusterIP |
overlord.serviceAccount.create | Create a service account for overlord service | true |
overlord.serviceAccount.name | Service account name | Derived from the name of service |
overlord.serviceAccount.annotations | Annotations applied to created service account | {} |
overlord.serviceAccount.labels | Labels applied to created service account | {} |
overlord.serviceAccount.automountServiceAccountToken | Automount API credentials for the Service Account | true |
overlord.resources | overlord node resources requests & limits | {} |
overlord.podAnnotations | overlord Deployment annotations | {} |
overlord.nodeSelector | node labels for overlord pod assignment | {} |
overlord.tolerations | overlord tolerations | [] |
overlord.config | overlord private config such as JAVA_OPTS | |
overlord.affinity | overlord affinity policy | {} |
overlord.ingress.enabled | enable ingress | false |
overlord.ingress.hosts | hosts for the overlord api | [ "chart-example.local" ] |
overlord.ingress.path | path of the overlord api | / |
overlord.ingress.annotations | annotations for the overlord api ingress | {} |
overlord.ingress.tls | TLS configuration for the ingress | [] |
Coordinator
| Parameter | Description | Default |
|---|---|---|
coordinator.enabled | enable coordinator | true |
coordinator.name | coordinator component name | coordinator |
coordinator.replicaCount | coordinator node replicas (deployment) | 1 |
coordinator.port | port of coordinator component | 8081 |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartdruid is pinned at v37.0.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