kubectl exec -it <pod> -- sh
Современная альтернатива — kubectl debug (ephemeral containers).
kubectl debug