Skip to content

Commit d0a5088

Browse files
committed
Merge branch 'zookeeper-liveness-probes' into kubernetes-1.8-test
2 parents 75c72ca + e2d01cc commit d0a5088

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

zookeeper/50pzoo.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ spec:
5454
- /bin/sh
5555
- -c
5656
- '[ "imok" = "$(echo ruok | nc -w 1 -q 1 127.0.0.1 2181)" ]'
57+
livenessProbe:
58+
exec:
59+
command:
60+
- /bin/sh
61+
- -c
62+
- '[ "imok" = "$(echo ruok | nc -w 5 -q 1 127.0.0.1 2181)" ]'
5763
volumeMounts:
5864
- name: config
5965
mountPath: /etc/kafka

zookeeper/51zoo.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ spec:
5656
- /bin/sh
5757
- -c
5858
- '[ "imok" = "$(echo ruok | nc -w 1 -q 1 127.0.0.1 2181)" ]'
59+
livenessProbe:
60+
exec:
61+
command:
62+
- /bin/sh
63+
- -c
64+
- '[ "imok" = "$(echo ruok | nc -w 5 -q 1 127.0.0.1 2181)" ]'
5965
volumeMounts:
6066
- name: config
6167
mountPath: /etc/kafka

0 commit comments

Comments
 (0)