Update minikube.md (#13803)
This commit is contained in:
parent
83aadf6dc3
commit
6f62dc3fbe
|
@ -68,26 +68,30 @@ kubectl expose deployment hello-minikube --type=NodePort
|
|||
```
|
||||
service/hello-minikube exposed
|
||||
```
|
||||
|
||||
We have now launched an echoserver pod but we have to wait until the pod is up before curling/accessing it
|
||||
via the exposed service.
|
||||
To check whether the pod is up and running we can use the following:
|
||||
|
||||
```
|
||||
# We have now launched an echoserver pod but we have to wait until the pod is up before curling/accessing it
|
||||
# via the exposed service.
|
||||
# To check whether the pod is up and running we can use the following:
|
||||
kubectl get pod
|
||||
```
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 0/1 ContainerCreating 0 3s
|
||||
```
|
||||
```
|
||||
# We can see that the pod is still being created from the ContainerCreating status
|
||||
|
||||
We can see that the pod is still being created from the ContainerCreating status
|
||||
kubectl get pod
|
||||
```
|
||||
|
||||
```
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
hello-minikube-3383150820-vctvh 1/1 Running 0 13s
|
||||
```
|
||||
|
||||
We can see that the pod is now Running and we will now be able to curl it:
|
||||
|
||||
```
|
||||
# We can see that the pod is now Running and we will now be able to curl it:
|
||||
curl $(minikube service hello-minikube --url)
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue