repalce depracted run command by create (#16533)

This commit is contained in:
mohamed chiheb ben jemaa 2019-09-25 09:41:59 +01:00 committed by Kubernetes Prow Robot
parent c751f5cfcf
commit 94efd836f8
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ This brief demo guides you on how to start, use, and delete Minikube locally. Fo
Lets create a Kubernetes Deployment using an existing image named `echoserver`, which is a simple HTTP server and expose it on port 8080 using `--port`.
```shell
kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.10 --port=8080
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.10
```
The output is similar to this:
```
@ -61,7 +61,7 @@ This brief demo guides you on how to start, use, and delete Minikube locally. Fo
```
3. To access the `hello-minikube` Deployment, expose it as a Service:
```shell
kubectl expose deployment hello-minikube --type=NodePort
kubectl expose deployment hello-minikube --type=NodePort --port=8080
```
The option `--type=NodePort` specifies the type of the Service.