Kubectl exec bash

In this article let’s discuss about Kubectl exec bash. Let’s go through the following methods without any delay.

Method 1:

kubectl exec --stdin --tty shell-demo -- /bin/bash

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

sudo kubectl -n  --context= exec  -it /bin/bash

sudo kubectl -n default --context=staging-devops exec microservice1-jd830k-880 -it /bin/bash

Hope the above solution works.

Realted Posts : Listen eaddrinuse: address already in use :::8081