Skip to content

Commit

Permalink
Update Docs and Tutorials (#138)
Browse files Browse the repository at this point in the history
* docs and tutorials
  • Loading branch information
AdheipSingh authored Feb 17, 2024
1 parent bb30bd9 commit 144b7a7
Show file tree
Hide file tree
Showing 4 changed files with 425 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
- [Druid On K8s Without ZK](https://youtu.be/TRYOvkz5Wuw)
- [Building Apache Druid on Kubernetes: How Dailymotion Serves Partner Data](https://youtu.be/FYFq-tGJOQk)

### Supported CR
### Supported CR's

- The operator supports CR of type ```Druid```.
- ```Druid``` CR belongs to api Group ```druid.apache.org``` and version ```v1alpha1```
- The operator supports CR's of type ```Druid``` and ```DruidIngestion```.
- ```Druid``` and ```DruidIngestion``` CR belongs to api Group ```druid.apache.org``` and version ```v1alpha1```

### Druid Operator Architecture

Expand Down
Binary file modified docs/images/druid-operator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions tutorials/druid-on-kind/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Deploying Druid On KIND

- In this tutorial, we are going to deploy an Apache Druid cluster on KIND.
- This tutorial can easily run on your local machine.

## Prerequisites
To follow this tutorial you will need:

- The [KIND CLI](https://kind.sigs.k8s.io/) installed.
- The KUBECTL CLI installed.
- Docker up and Running.

## Install Kind Cluster
Create kind cluster on your machine.

```kind create cluster --name druid```

## Install Druid Operator

- Add Helm Repo
```
helm repo add datainfra https://charts.datainfra.io
helm repo update
```

- Install Operator
```
# Install Druid operator using Helm
helm -n druid-operator-system upgrade -i --create-namespace cluster-druid-operator datainfra/druid-operator
```

## Apply Druid Customer Resource

- This druid CR runs druid without zookeeper, using druid k8s extension.
- MM less deployment.
- Derby for metadata.
- Minio for deepstorage.

- Run ```make helm-minio-install ```. This will deploy minio using minio operator.

- Once the minio pod is up and running in druid namespace, apply the druid CR.
- ```kubectl apply -f tutorials/druid-on-kind/druid-mmless.yaml -n druid```

Here's a view of the druid namespace.

```
NAMESPACE NAME READY STATUS RESTARTS AGE
druid druid-tiny-cluster-brokers-5ddcb655cf-plq6x 1/1 Running 0 2d
druid druid-tiny-cluster-cold-0 1/1 Running 0 2d
druid druid-tiny-cluster-coordinators-846df8f545-9qrsw 1/1 Running 1 2d
druid druid-tiny-cluster-hot-0 1/1 Running 0 2d
druid druid-tiny-cluster-routers-5c9677bf9d-qk9q7 1/1 Running 0 2d
druid myminio-ss-0-0 2/2 Running 0 2d
```

## Access Router Console

- Port forward router
- ```kubectl port-forward svc/druid-tiny-cluster-routers 8088 -n druid```
Loading

0 comments on commit 144b7a7

Please sign in to comment.