Fix kubectl exec (#61)

Error:
```
$> kubectl exec -ti redis-with-volume-secrets /bin/bash
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
error: unable to upgrade connection: container not found ("redis")
```
This commit is contained in:
Xavier Grand 2020-11-12 13:34:44 +01:00 committed by GitHub
parent 600aaa77ae
commit 17f20eeabe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ spec:
You can look up the secrets in the pod by connecting to the pod: You can look up the secrets in the pod by connecting to the pod:
```sh ```sh
$ kubectl exec -ti redis-with-volume-secrets /bin/bash $ kubectl exec -ti redis-with-volume-secrets -- /bin/bash
root@redis-with-volume-secrets:/data# cd /etc/foo/ root@redis-with-volume-secrets:/data# cd /etc/foo/
root@redis-with-volume-secrets:/etc/foo# ls root@redis-with-volume-secrets:/etc/foo# ls
password username password username