Skip to content

Commit f3107d2

Browse files
keshyTim Bannister
andauthored
Update content/en/docs/reference/kubectl/cheatsheet.md
Ack on recommended change. Co-authored-by: Tim Bannister <[email protected]>
1 parent b752ca0 commit f3107d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/reference/kubectl/cheatsheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ kubectl run nginx --image=nginx # Run pod nginx and write it
311311
kubectl attach my-pod -i # Attach to Running Container
312312
kubectl port-forward my-pod 5000:6000 # Listen on port 5000 on the local machine and forward to port 6000 on my-pod
313313
kubectl exec my-pod -- ls / # Run command in existing pod (1 container case)
314-
kubectl exec --stdin --tty my-pod -- /bin/bash # Get active shell access to a running pod (1 container case)
314+
kubectl exec --stdin --tty my-pod -- /bin/sh # Interactive shell access to a running pod (1 container case)
315315
kubectl exec my-pod -c my-container -- ls / # Run command in existing pod (multi-container case)
316316
kubectl top pod POD_NAME --containers # Show metrics for a given pod and its containers
317317
```

0 commit comments

Comments
 (0)