Skip to content

Commit ac443a9

Browse files
committed
Fixes posix compatibility for probes
1 parent 07d895c commit ac443a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

zookeeper/50pzoo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ spec:
6666
command:
6767
- /bin/sh
6868
- -c
69-
- '[ "imok" == $(echo "ruok" | nc -w 1 127.0.0.1 2181) ]'
69+
- '[ "imok" = "$(echo ruok | nc -w 1 127.0.0.1 2181)" ]'
7070
readinessProbe:
7171
exec:
7272
command:
7373
- /bin/sh
7474
- -c
75-
- '[ "imok" == $(echo "ruok" | nc -w 1 127.0.0.1 2181) ]'
75+
- '[ "imok" = "$(echo ruok | nc -w 1 127.0.0.1 2181)" ]'
7676
volumeMounts:
7777
- name: config
7878
mountPath: /usr/local/kafka/config

zookeeper/51zoo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ spec:
6666
command:
6767
- /bin/sh
6868
- -c
69-
- '[ "imok" == $(echo "ruok" | nc -w 1 127.0.0.1 2181) ]'
69+
- '[ "imok" = "$(echo ruok | nc -w 1 127.0.0.1 2181)" ]'
7070
readinessProbe:
7171
exec:
7272
command:
7373
- /bin/sh
7474
- -c
75-
- '[ "imok" == $(echo "ruok" | nc -w 1 127.0.0.1 2181) ]'
75+
- '[ "imok" = "$(echo ruok | nc -w 1 127.0.0.1 2181)" ]'
7676
volumeMounts:
7777
- name: config
7878
mountPath: /usr/local/kafka/config

0 commit comments

Comments
 (0)