1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-23 17:44:11 +02:00
tldr/pages/common/kubectl-exec.md
2025-08-17 19:21:54 +02:00

8 lines
274 B
Markdown

# 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`