mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
14 lines
359 B
Plaintext
14 lines
359 B
Plaintext
---
|
|
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/kubectl/generated/kubectl_exec/>.
|
|
|
|
- Open Bash in a pod, using the first container by default:
|
|
|
|
`kubectl exec {{pod_name}} {{[-it|--stdin --tty]}} -- bash`
|