Skip to content

Commit b30a5df

Browse files
authored
Merge pull request #30262 from doughgle/patch-1
Use kubectl exec [POD] -- [COMMAND] instead.
2 parents 7c5f6e0 + 52fe454 commit b30a5df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/docs/tutorials/stateful-application/zookeeper.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ to read the data from another.
266266
The command below executes the `zkCli.sh` script to write `world` to the path `/hello` on the `zk-0` Pod in the ensemble.
267267

268268
```shell
269-
kubectl exec zk-0 zkCli.sh create /hello world
269+
kubectl exec zk-0 -- zkCli.sh create /hello world
270270
```
271271

272272
```
@@ -279,7 +279,7 @@ Created /hello
279279
To get the data from the `zk-1` Pod use the following command.
280280

281281
```shell
282-
kubectl exec zk-1 zkCli.sh get /hello
282+
kubectl exec zk-1 -- zkCli.sh get /hello
283283
```
284284

285285
The data that you created on `zk-0` is available on all the servers in the

0 commit comments

Comments
 (0)