Skip to content

Commit

Permalink
Merge pull request #227 from Yolean/fix-zookeeper-persistence
Browse files Browse the repository at this point in the history
Fix Zookeeper persistence
  • Loading branch information
solsson authored Dec 2, 2018
2 parents d3043d3 + 57d8200 commit e1d3f6f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ If you begin to rely on this kafka setup we recommend you fork, for example to e
| ----- | ------ | ---------- |
| v5.0.1 | 1.11+ | Fixes Zookeeper persistence [#227](https://github.com/Yolean/kubernetes-kafka/pull/227) |
| v5.0 | 1.11+ | Destabilize because in Docker we want Java 11 [#197](https://github.com/Yolean/kubernetes-kafka/pull/197) [#191](https://github.com/Yolean/kubernetes-kafka/pull/191) |
| v4.3.1 | 1.9+ | Critical Zookeeper persistence fix [#228](https://github.com/Yolean/kubernetes-kafka/pull/228) |
| v4.3 | 1.9+ | Adds a prpper shutdown hook [207](https://github.com/Yolean/kubernetes-kafka/pull/207) |
| v4.2 | 1.9+ | Kafka 1.0.2 and tools upgrade |
| v4.1 | 1.9+ | Kafka 1.0.1 new [default](#148) [config](#170) |
Expand Down
1 change: 1 addition & 0 deletions zookeeper/10zookeeper-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ data:
set -e
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
Expand Down
6 changes: 3 additions & 3 deletions zookeeper/50pzoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
- name: config
mountPath: /etc/kafka
- name: data
mountPath: /var/lib/zookeeper/data
mountPath: /var/lib/zookeeper
containers:
- name: zookeeper
image: solsson/kafka:2.1.0@sha256:ac3f06d87d45c7be727863f31e79fbfdcb9c610b51ba9cf03c75a95d602f15e1
Expand All @@ -57,7 +57,7 @@ spec:
cpu: 10m
memory: 100Mi
limits:
memory: 100Mi
memory: 120Mi
readinessProbe:
exec:
command:
Expand All @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions zookeeper/51zoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
- name: config
mountPath: /etc/kafka
- name: data
mountPath: /var/lib/zookeeper/data
mountPath: /var/lib/zookeeper
containers:
- name: zookeeper
image: solsson/kafka:2.1.0@sha256:ac3f06d87d45c7be727863f31e79fbfdcb9c610b51ba9cf03c75a95d602f15e1
Expand All @@ -60,7 +60,7 @@ spec:
cpu: 10m
memory: 100Mi
limits:
memory: 100Mi
memory: 120Mi
readinessProbe:
exec:
command:
Expand All @@ -71,7 +71,7 @@ spec:
- name: config
mountPath: /etc/kafka
- name: data
mountPath: /var/lib/zookeeper/data
mountPath: /var/lib/zookeeper
volumes:
- name: configmap
configMap:
Expand Down

0 comments on commit e1d3f6f

Please sign in to comment.