Command
kubectl exec -it <pod-name> -- /bin/sh
Explanation
Opens an interactive shell into the pod container.
Examples
Shell into pod
kubectl exec -it my-app-pod-1234 -- /bin/sh
kubectl exec -it <pod-name> -- /bin/sh
Opens an interactive shell into the pod container.
Shell into pod
kubectl exec -it my-app-pod-1234 -- /bin/sh