mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
9 lines
266 B
Markdown
9 lines
266 B
Markdown
# kubectl exec
|
|
|
|
> Execute a command in a container.
|
|
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_exec/>.
|
|
|
|
- Open Bash in a pod, using the first container by default:
|
|
|
|
`kubectl exec {{pod_name}} {{[-it|--stdin --tty]}} -- bash`
|