From 21420c9211fe187ae40eca4001adc92da8694f89 Mon Sep 17 00:00:00 2001 From: JangHeeSoo Date: Wed, 5 Apr 2023 16:10:38 +0900 Subject: [PATCH] add busybox securityContext --- charts/dremio_v2/templates/dremio-executor.yaml | 4 ++++ charts/dremio_v2/templates/dremio-master.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/charts/dremio_v2/templates/dremio-executor.yaml b/charts/dremio_v2/templates/dremio-executor.yaml index fffdc53c..86a3b5b4 100644 --- a/charts/dremio_v2/templates/dremio-executor.yaml +++ b/charts/dremio_v2/templates/dremio-executor.yaml @@ -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 diff --git a/charts/dremio_v2/templates/dremio-master.yaml b/charts/dremio_v2/templates/dremio-master.yaml index 56171774..22aa482c 100644 --- a/charts/dremio_v2/templates/dremio-master.yaml +++ b/charts/dremio_v2/templates/dremio-master.yaml @@ -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