Installation

There are two ways to run the Apache Druid Operator:

  1. Using Helm

  2. As a Docker container

  3. Build from source

Helm

Helm allows you to download and deploy Stackable operators on Kubernetes and is by far the easiest installation method. First ensure that you have installed the Stackable Operators Helm repository:

$ helm repo add stackable https://repo.stackable.tech/repository/helm-stable/

Then install the Stackable Operator for Apache Druid

$ helm install druid-operator stackable/druid-operator

Helm will deploy the operator in a Kubernetes container and apply the CRDs for the Apache Druid service. You are now ready to deploy Apache Druid in Kubernetes.

Docker

This Operator is published as a Docker image:

docker.stackable.tech/stackable/druid-operator

When installing manually with Docker you will need to install the Stackable CRDs for Apache Druid in your Kubernetes environment. These are available on the Stackable GitHub repository for this operator.

$ kubectl apply -f druidcluster.crd.yaml

To run it straight from Docker you can use this command:

docker run \
    --name druid-operator \
    --network host \
    --env KUBECONFIG=/home/stackable/.kube/config \
    --mount type=bind,source="$HOME/.kube/config",target="/home/stackable/.kube/config" \
    docker.stackable.tech/stackable/druid-operator:latest

Building the operator from source

This operator is written in Rust and is developed against the latest stable Rust release.

cargo build