From 593fb144b6789dc731f98b030f5bf4fe3d2d7646 Mon Sep 17 00:00:00 2001 From: Douglas Hellinger Date: Wed, 27 Oct 2021 10:31:23 +0800 Subject: [PATCH 1/2] Update zookeeper.md kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead. --- content/en/docs/tutorials/stateful-application/zookeeper.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/tutorials/stateful-application/zookeeper.md b/content/en/docs/tutorials/stateful-application/zookeeper.md index 3ed1cd454b..1f6b0983f8 100644 --- a/content/en/docs/tutorials/stateful-application/zookeeper.md +++ b/content/en/docs/tutorials/stateful-application/zookeeper.md @@ -266,7 +266,7 @@ to read the data from another. The command below executes the `zkCli.sh` script to write `world` to the path `/hello` on the `zk-0` Pod in the ensemble. ```shell -kubectl exec zk-0 zkCli.sh create /hello world +kubectl exec zk-0 -- zkCli.sh create /hello world ``` ``` From 52fe4549f9cef4a631da1ca471f75800e04a8caa Mon Sep 17 00:00:00 2001 From: Douglas Hellinger Date: Wed, 27 Oct 2021 10:37:34 +0800 Subject: [PATCH 2/2] Update zookeeper.md --- content/en/docs/tutorials/stateful-application/zookeeper.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/tutorials/stateful-application/zookeeper.md b/content/en/docs/tutorials/stateful-application/zookeeper.md index 1f6b0983f8..b786160a79 100644 --- a/content/en/docs/tutorials/stateful-application/zookeeper.md +++ b/content/en/docs/tutorials/stateful-application/zookeeper.md @@ -279,7 +279,7 @@ Created /hello To get the data from the `zk-1` Pod use the following command. ```shell -kubectl exec zk-1 zkCli.sh get /hello +kubectl exec zk-1 -- zkCli.sh get /hello ``` The data that you created on `zk-0` is available on all the servers in the