How to Jump onto a Kubernetes Pod with Bash

If you want to jump onto a particular Kubernetes Pod and run Bash within it, you can do so as follows:

kubectl exec -ti <pod_name> /bin/bash
Code language: Bash (bash)

You can get the <pod_name> by running kubectl get pods

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments