mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 21:59:08 +00:00
Update cheatsheets
This commit is contained in:
13
tldr/kubectl-exec
Normal file
13
tldr/kubectl-exec
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# kubectl exec
|
||||
|
||||
> Execute a command in a container.
|
||||
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#exec>.
|
||||
|
||||
- Open Bash in a pod, using the first container by default:
|
||||
|
||||
`kubectl exec {{pod_name}} {{-it|--stdin --tty]}} -- bash`
|
||||
Reference in New Issue
Block a user