Skip to content

Commit 971bf1c

Browse files
Merge pull request #18347 from linzhaoming/linzm-fix
Automatic merge from submit-queue. Fix the wrong check script for zookeeper Should use $i, insead of $1
2 parents a1f96fb + a33e6b4 commit 971bf1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/statefulsets/zookeeper/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $ kubectl exec zoo-2 -- /opt/zookeeper/bin/zkCli.sh get /foo;
2020

2121
Watch existing members:
2222
```console
23-
$ kubectl run --attach bbox --image=busybox --restart=Never -- sh -c 'while true; do for i in 0 1 2; do echo zoo-$i $(echo stats | nc zoo-$1.zk:2181 | grep Mode); sleep 1; done; done';
23+
$ kubectl run --attach bbox --image=busybox --restart=Never -- sh -c 'while true; do for i in 0 1 2; do echo zoo-$i $(echo stats | nc zoo-$i.zk:2181 | grep Mode); sleep 1; done; done';
2424
zoo-2 Mode: follower
2525
zoo-0 Mode: follower
2626
zoo-1 Mode: leader

0 commit comments

Comments
 (0)