Skip to content

Commit

Permalink
repalce depracted run command by create (#16533)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbenjemaa authored and k8s-ci-robot committed Sep 25, 2019
1 parent c751f5c commit 94efd83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/en/docs/setup/learning-environment/minikube.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ This brief demo guides you on how to start, use, and delete Minikube locally. Fo

Let’s 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:
```
deployment.apps/hello-minikube created
```
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.

Expand Down

0 comments on commit 94efd83

Please sign in to comment.