1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-22 05:04:09 +02:00
tldr/pages/common/kubectl-exec.md
Managor 2fe846f447
kubectl-exec: add page (#17651)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
2025-08-16 23:43:09 +05:30

273 B

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