Skip to content

Commit 84ce255

Browse files
authored
Fixed order of arguments for k exec.
Otherwise error message 'error: expected 'exec POD_NAME COMMAND [ARG1] [ARG2] ... [ARGN]'.' is encountered.
1 parent 4c2bc87 commit 84ce255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

01-path-basics/103-kubernetes-concepts/readme.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Logs from the pod can be obtained (a fresh nginx does not have logs - check agai
165165
This command will open a TTY to a shell in your pod:
166166

167167
$ kubectl get pods
168-
$ kubectl exec -it <pod-name> /bin/bash
168+
$ kubectl exec <pod-name> -it /bin/bash
169169

170170
This opens a bash shell and allows you to look around the filesystem of the container.
171171

0 commit comments

Comments
 (0)