Skip to content

Commit

Permalink
examples doc uses deprecated "kubectl run" cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
RA489 committed Nov 1, 2019
1 parent fc8e032 commit 7e9f7c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/content/en/docs/Examples/_index.md
Expand Up @@ -18,11 +18,11 @@ Access the Kubernetes Dashboard running within the minikube cluster:

Once started, you can interact with your cluster using `kubectl`, just like any other Kubernetes cluster. For instance, starting a server:

`kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.4 --port=8080`
`kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.4`

Exposing a service as a NodePort

`kubectl expose deployment hello-minikube --type=NodePort`
`kubectl expose deployment hello-minikube --type=NodePort --port=8080`

minikube makes it easy to open this exposed endpoint in your browser:

Expand Down

0 comments on commit 7e9f7c1

Please sign in to comment.