Skip to content

Commit

Permalink
DX-15655: restrict dremio master to a single pod
Browse files Browse the repository at this point in the history
Change-Id: I5945385b35480a10922c0750902eb5648bcd0194
  • Loading branch information
Nirmalya Sen committed Mar 25, 2019
1 parent 6a05559 commit ffba08f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 4 additions & 1 deletion charts/dremio/templates/dremio-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: dremio-master
spec:
serviceName: "dremio-cluster-pod"
replicas: {{.Values.coordinator.master_count}}
replicas: 1
selector:
matchLabels:
app: dremio-coordinator
Expand Down Expand Up @@ -64,6 +64,9 @@ spec:
- containerPort: 45678
name: server
initContainers:
- name: start-only-one-master
image: busybox
command: ["sh", "-c", "INDEX=${HOSTNAME##*-}; if [ $INDEX -ne 0 ]; then echo Only one master should be running.; exit 1; fi; "]
- name: wait-for-zk
image: busybox
command: ["sh", "-c", "until ping -c 1 -W 1 zk-hs > /dev/null; do echo waiting for zookeeper host; sleep 2; done;"]
Expand Down
11 changes: 6 additions & 5 deletions charts/dremio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,20 @@ image: dremio/dremio-oss:latest
coordinator:
memory: 16384
cpu: 8
# This count is for slave coordinators only.
# The chart will always create one master coordinator - you are
# not required to have more than one master coordinator.
count: 0
# This value should NOT be set to more than 1.
master_count: 1
web:
port: 9047
client:
port: 31010
volumeSize: 20Gi
volumeSize: 100Gi
executor:
memory: 16384
cpu: 4
count: 1
volumeSize: 20Gi
count: 3
volumeSize: 100Gi

# If your Kubernetes cluster does not support LoadBalancer,
# comment out the line below for the helm chart to succeed or add
Expand Down

0 comments on commit ffba08f

Please sign in to comment.