Skip to content

Instantly share code, notes, and snippets.

@mikerodionov
Created September 12, 2022 09:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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