Skip to content

Commit 6b734d7

Browse files
committed
Mounts the parent of "datadir" AND "snapdir"
Fixes #89, "logs" which are actually data would end up outside the mount. Zookeeper's startup logs are more clear than the property file entries: INFO Created server with tickTime 2000 minSessionTimeout 4000 maxSessionTimeout 40000 datadir /var/lib/zookeeper/log/version-2 snapdir /var/lib/zookeeper/data/version-2
1 parent 198666d commit 6b734d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

zookeeper/50pzoo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ spec:
6565
- name: config
6666
mountPath: /etc/kafka
6767
- name: data
68-
mountPath: /var/lib/zookeeper/data
68+
mountPath: /var/lib/zookeeper
6969
volumes:
7070
- name: configmap
7171
configMap:

zookeeper/51zoo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ spec:
6868
- name: config
6969
mountPath: /etc/kafka
7070
- name: data
71-
mountPath: /var/lib/zookeeper/data
71+
mountPath: /var/lib/zookeeper
7272
volumes:
7373
- name: configmap
7474
configMap:

0 commit comments

Comments
 (0)