diff --git a/zookeeper/50pzoo.yml b/zookeeper/50pzoo.yml index 6c0767b5..088615f8 100644 --- a/zookeeper/50pzoo.yml +++ b/zookeeper/50pzoo.yml @@ -49,6 +49,12 @@ spec: - /bin/sh - -c - '[ "imok" = "$(echo ruok | nc -w 1 -q 1 127.0.0.1 2181)" ]' + livenessProbe: + exec: + command: + - /bin/sh + - -c + - '[ "imok" = "$(echo ruok | nc -w 5 -q 1 127.0.0.1 2181)" ]' volumeMounts: - name: config mountPath: /etc/kafka diff --git a/zookeeper/51zoo.yml b/zookeeper/51zoo.yml index c790ec24..2a047335 100644 --- a/zookeeper/51zoo.yml +++ b/zookeeper/51zoo.yml @@ -52,6 +52,12 @@ spec: - /bin/sh - -c - '[ "imok" = "$(echo ruok | nc -w 1 -q 1 127.0.0.1 2181)" ]' + livenessProbe: + exec: + command: + - /bin/sh + - -c + - '[ "imok" = "$(echo ruok | nc -w 5 -q 1 127.0.0.1 2181)" ]' volumeMounts: - name: config mountPath: /etc/kafka