Created
September 12, 2022 09:49
-
-
Save mikerodionov/8c79b1c296781d9fa11e8e500c06186f to your computer and use it in GitHub Desktop.
Connect to a shell of a running container within Kubernetes pod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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