diff --git a/zookeeper/10zookeeper-config.yml b/zookeeper/10zookeeper-config.yml index 06943914..cf36942d 100644 --- a/zookeeper/10zookeeper-config.yml +++ b/zookeeper/10zookeeper-config.yml @@ -8,6 +8,7 @@ data: #!/bin/bash set -x + [ -d /var/lib/zookeeper/data ] || mkdir /var/lib/zookeeper/data [ -z "$ID_OFFSET" ] && ID_OFFSET=1 export ZOOKEEPER_SERVER_ID=$((${HOSTNAME##*-} + $ID_OFFSET)) echo "${ZOOKEEPER_SERVER_ID:-1}" | tee /var/lib/zookeeper/data/myid diff --git a/zookeeper/50pzoo.yml b/zookeeper/50pzoo.yml index 68e1dbdd..4e897ec9 100644 --- a/zookeeper/50pzoo.yml +++ b/zookeeper/50pzoo.yml @@ -30,7 +30,7 @@ spec: - name: config mountPath: /etc/kafka - name: data - mountPath: /var/lib/zookeeper/data + mountPath: /var/lib/zookeeper containers: - name: zookeeper image: solsson/kafka:1.0.2@sha256:7fdb326994bcde133c777d888d06863b7c1a0e80f043582816715d76643ab789 @@ -65,7 +65,7 @@ spec: - name: config mountPath: /etc/kafka - name: data - mountPath: /var/lib/zookeeper/data + mountPath: /var/lib/zookeeper volumes: - name: configmap configMap: diff --git a/zookeeper/51zoo.yml b/zookeeper/51zoo.yml index 42c12128..bc0bf12b 100644 --- a/zookeeper/51zoo.yml +++ b/zookeeper/51zoo.yml @@ -33,7 +33,7 @@ spec: - name: config mountPath: /etc/kafka - name: data - mountPath: /var/lib/zookeeper/data + mountPath: /var/lib/zookeeper containers: - name: zookeeper image: solsson/kafka:1.0.2@sha256:7fdb326994bcde133c777d888d06863b7c1a0e80f043582816715d76643ab789 @@ -68,7 +68,7 @@ spec: - name: config mountPath: /etc/kafka - name: data - mountPath: /var/lib/zookeeper/data + mountPath: /var/lib/zookeeper volumes: - name: configmap configMap: