Skip to content

Commit ffba08f

Browse files
author
Nirmalya Sen
committed
DX-15655: restrict dremio master to a single pod
Change-Id: I5945385b35480a10922c0750902eb5648bcd0194
1 parent 6a05559 commit ffba08f

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

charts/dremio/templates/dremio-master.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: dremio-master
55
spec:
66
serviceName: "dremio-cluster-pod"
7-
replicas: {{.Values.coordinator.master_count}}
7+
replicas: 1
88
selector:
99
matchLabels:
1010
app: dremio-coordinator
@@ -64,6 +64,9 @@ spec:
6464
- containerPort: 45678
6565
name: server
6666
initContainers:
67+
- name: start-only-one-master
68+
image: busybox
69+
command: ["sh", "-c", "INDEX=${HOSTNAME##*-}; if [ $INDEX -ne 0 ]; then echo Only one master should be running.; exit 1; fi; "]
6770
- name: wait-for-zk
6871
image: busybox
6972
command: ["sh", "-c", "until ping -c 1 -W 1 zk-hs > /dev/null; do echo waiting for zookeeper host; sleep 2; done;"]

charts/dremio/values.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@ image: dremio/dremio-oss:latest
99
coordinator:
1010
memory: 16384
1111
cpu: 8
12+
# This count is for slave coordinators only.
13+
# The chart will always create one master coordinator - you are
14+
# not required to have more than one master coordinator.
1215
count: 0
13-
# This value should NOT be set to more than 1.
14-
master_count: 1
1516
web:
1617
port: 9047
1718
client:
1819
port: 31010
19-
volumeSize: 20Gi
20+
volumeSize: 100Gi
2021
executor:
2122
memory: 16384
2223
cpu: 4
23-
count: 1
24-
volumeSize: 20Gi
24+
count: 3
25+
volumeSize: 100Gi
2526

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

0 commit comments

Comments
 (0)