Skip to content
Open
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: 4 additions & 0 deletions charts/dremio_v2/templates/dremio-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ spec:
{{- include "dremio.executor.cloudCache.initContainers" (list $ $engineName) | nindent 6 }}
- name: wait-for-zookeeper
image: busybox
securityContext:
capabilities:
add:
- NET_RAW
command: ["sh", "-c", "until ping -c 1 -W 1 zk-hs > /dev/null; do echo Waiting for Zookeeper to be ready.; sleep 2; done;"]
volumes:
- name: dremio-config
Expand Down
4 changes: 4 additions & 0 deletions charts/dremio_v2/templates/dremio-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ spec:
{{- include "dremio.coordinator.extraInitContainers" $ | nindent 6 }}
- name: start-only-one-dremio-master
image: busybox
securityContext:
capabilities:
add:
- NET_RAW
command: ["sh", "-c", "INDEX=${HOSTNAME##*-}; if [ $INDEX -ne 0 ]; then echo Only one master should be running.; exit 1; fi; "]
- name: wait-for-zookeeper
image: busybox
Expand Down