Skip to content

Instantly share code, notes, and snippets.

@mikerodionov
Created September 12, 2022 09:49
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