From 17f20eeabeafd1d4ebe886c9474025955b3957f2 Mon Sep 17 00:00:00 2001 From: Xavier Grand Date: Thu, 12 Nov 2020 13:34:44 +0100 Subject: [PATCH] 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") ``` --- 10-secrets/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/10-secrets/README.md b/10-secrets/README.md index 376da7f..98444f0 100644 --- a/10-secrets/README.md +++ b/10-secrets/README.md @@ -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