Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(eks deployment): Add expected volumeClaim to eks.yaml #149

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading