Skip to content

Commit

Permalink
adds needed volumes to eks deployment spec and improves getting start…
Browse files Browse the repository at this point in the history
…ed documentation by noting minio dependency (#149)
  • Loading branch information
EandrewJones authored Mar 4, 2024
1 parent 53c0ec8 commit 03aa53d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 30 deletions.
4 changes: 2 additions & 2 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ kubectl apply -f examples/tiny-cluster-zk.yaml
kubectl apply -f examples/tiny-cluster.yaml
```

`NOTE:` that above tiny-cluster only works on a single node kubernetes cluster(e.g. typical k8s cluster setup for dev
using kind or minikube) as it uses local disk as "deep storage".
`NOTE:` the above tiny-cluster only works on a single node kubernetes cluster (e.g. typical k8s cluster setup for dev
using kind or minikube) as it uses local disk as "deep storage". Other example specs in the `examples/` directory use distributed "deep storage" and therefore expect to be deployed into a k8s cluster with s3-compatible storage. To bootstrap your k8s cluster with s3-compatible storage, you can run `make helm-minio-install`. See the [Makefile](../Makefile) for more details.


## Debugging Problems
Expand Down
68 changes: 40 additions & 28 deletions examples/aws/eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,18 @@ spec:
"[MEM] Response Rate: Success"],
"type" : "count" }
}
volumeMounts:
- mountPath: /druid/data
name: data-volume
- mountPath: /druid/deepstorage
name: deepstorage-volume
volumes:
- name: data-volume
emptyDir: {}
- name: deepstorage-volume
hostPath:
path: /tmp/druid/deepstorage
type: DirectoryOrCreate
env:
- name: POD_NAME
valueFrom:
Expand All @@ -266,7 +278,7 @@ spec:
# Optionally specify for broker nodes
# imagePullSecrets:
# - name: tutu
priorityClassName: system-cluster-critical
priorityClassName: system-cluster-critical
druid.port: 8088
services:
- spec:
Expand All @@ -275,15 +287,15 @@ spec:
nodeConfigMountPath: "/opt/druid/conf/druid/cluster/query/broker"
replicas: 1
volumeClaimTemplates:
- metadata:
name: data-volume
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
storageClassName: gp2
- metadata:
name: data-volume
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
storageClassName: gp2
runtime.properties: |
druid.service=druid/broker
# HTTP server threads
Expand Down Expand Up @@ -340,15 +352,15 @@ spec:
-Xmx512m
-Xms512m
volumeClaimTemplates:
- metadata:
name: data-volume
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
storageClassName: gp2
- metadata:
name: data-volume
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
storageClassName: gp2

routers:
nodeType: "router"
Expand Down Expand Up @@ -399,21 +411,21 @@ kind: Role
metadata:
name: druid-cluster
rules:
- apiGroups:
- ""
resources:
- pods
- configmaps
verbs:
- '*'
- apiGroups:
- ""
resources:
- pods
- configmaps
verbs:
- "*"
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: druid-cluster
subjects:
- kind: ServiceAccount
name: default
- kind: ServiceAccount
name: default
roleRef:
kind: Role
name: druid-cluster
Expand Down

0 comments on commit 03aa53d

Please sign in to comment.