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:
parent
600aaa77ae
commit
17f20eeabe
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue