Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question

In kubernetes, if you have a container running in a pod called "test-deployment-abcd", issue command to get inside that container shell (to debug for example)?

Answer

kubectl exec -it test-deployment-abcd /bin/bash

^^ note you need the -it because you want to get in interactive terminal shell

^^^ note for "kubectl exec", "kubectl logs", "kubectl run" commands you don't need to follow up with resource type "pod", just follow up with pod name (or new deployment name in case of "kubectl run")


Question

In kubernetes, if you have a container running in a pod called "test-deployment-abcd", issue command to get inside that container shell (to debug for example)?

Answer
?

Question

In kubernetes, if you have a container running in a pod called "test-deployment-abcd", issue command to get inside that container shell (to debug for example)?

Answer

kubectl exec -it test-deployment-abcd /bin/bash

^^ note you need the -it because you want to get in interactive terminal shell

^^^ note for "kubectl exec", "kubectl logs", "kubectl run" commands you don't need to follow up with resource type "pod", just follow up with pod name (or new deployment name in case of "kubectl run")


Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.