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)?
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")
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)?
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)?
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")
status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|
repetition number in this series | 0 | memorised on | scheduled repetition | ||||
scheduled repetition interval | last repetition or drill |