Merge pull request #30262 from doughgle/patch-1

Use kubectl exec [POD] -- [COMMAND] instead.
This commit is contained in:
Kubernetes Prow Robot 2021-11-01 09:09:18 -07:00 committed by GitHub
commit b30a5df214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
```
```
@ -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