Fix kubectl exec

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-10 14:29:53 +01:00 committed by GitHub
parent 600aaa77ae
commit f5f4f79dd0
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:
```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:/etc/foo# ls
password username