mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07:50 +00:00
address Mike's comments
This commit is contained in:
parent
600e785168
commit
ec87843b24
@ -39,3 +39,6 @@ Now one can debug the database from the local workstation.
|
||||
|
||||
|
||||
[]()
|
||||
|
||||
|
||||
[]()
|
||||
|
@ -17,7 +17,10 @@ The above proxy URL is an access to the kube-ui service provided by the apiserve
|
||||
$ kubectl proxy --port=8001
|
||||
Starting to serve on localhost:8001
|
||||
```
|
||||
Now you can access the kube-ui service on your local workstation at http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/kube-ui
|
||||
Now you can access the kube-ui service on your local workstation at [http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/kube-ui](http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/kube-ui)
|
||||
|
||||
|
||||
[]()
|
||||
|
||||
|
||||
[]()
|
||||
|
@ -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.
|
||||
|
||||
[]()
|
||||
|
Loading…
Reference in New Issue
Block a user