Merge pull request #5799 from RA489/kctlrunfix

update examples to use "kubectl create"
pull/5813/head
Medya Ghazizadeh 2019-11-01 10:21:01 -07:00 committed by GitHub
commit 519385074f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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: