address Mike's comments

This commit is contained in:
Chao Xu
2015-07-10 17:58:51 -07:00
parent 600e785168
commit ec87843b24
3 changed files with 14 additions and 1 deletions

View File

@@ -45,5 +45,12 @@ $ kubectl exec storage ls /data
redis
```
## Using kubectl exec to open a bash terminal in a pod
After all, open a terminal in a pod is the most direct way to introspect the pod. Assuming the pod/storage is still running, run
```
$ kubectl exec -ti storage -- bash
root@storage:/data#
```
This gets you a terminal.
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/getting-into-containers.md?pixel)]()