Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Connect to a shell of a running container within Kubernetes pod
NS=<NAMESPACE_NAME>
POD_NAME=<POD_NAME>
kubectl exec -n $NS --stdin --tty $POD_NAME -- /bin/sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment