de: Replace deprecated kubectl run (#16971)
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
2f44e578aa
commit
87e4846144
@@ -52,14 +52,14 @@ Creating machine...
|
||||
Starting local Kubernetes cluster...
|
||||
```
|
||||
```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
|
||||
```
|
||||
```
|
||||
deployment.apps/hello-minikube created
|
||||
```
|
||||
|
||||
```shell
|
||||
kubectl expose deployment hello-minikube --type=NodePort
|
||||
kubectl expose deployment hello-minikube --type=NodePort --port=8080
|
||||
```
|
||||
```
|
||||
service/hello-minikube exposed
|
||||
|
||||
Reference in New Issue
Block a user