link
kubernetes/exec-pod

Exec Into Pod

Execute a command in a pod

pods
debugging

Command

kubectl exec -it <pod-name> -- /bin/sh

Examples

Shell into pod

kubectl exec -it my-app-pod-1234 -- /bin/sh