From 94efd836f862de4a4f1af18960088555aca8d10f Mon Sep 17 00:00:00 2001 From: mohamed chiheb ben jemaa Date: Wed, 25 Sep 2019 09:41:59 +0100 Subject: [PATCH] repalce depracted run command by create (#16533) --- content/en/docs/setup/learning-environment/minikube.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/setup/learning-environment/minikube.md b/content/en/docs/setup/learning-environment/minikube.md index baf0c86ecbafa..d1fc2e3d47249 100644 --- a/content/en/docs/setup/learning-environment/minikube.md +++ b/content/en/docs/setup/learning-environment/minikube.md @@ -53,7 +53,7 @@ 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: ``` @@ -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.