Skip to content

Commit 3c1e828

Browse files
authored
Merge pull request #20365 from ntkjer/feature/ingress-minikube-edit
fixes deprecated references to kubectl run as a deployment generator
2 parents c86ceb8 + f438d28 commit 3c1e828

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/docs/tasks/access-application-cluster/ingress-minikube.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ This page shows you how to set up a simple Ingress which routes requests to Serv
6666
1. Create a Deployment using the following command:
6767

6868
```shell
69-
kubectl run web --image=gcr.io/google-samples/hello-app:1.0 --port=8080
69+
kubectl create deployment web --image=gcr.io/google-samples/hello-app:1.0 --port=8080
7070
```
7171

7272
Output:
@@ -78,7 +78,7 @@ This page shows you how to set up a simple Ingress which routes requests to Serv
7878
1. Expose the Deployment:
7979

8080
```shell
81-
kubectl expose deployment web --target-port=8080 --type=NodePort
81+
kubectl expose deployment web --type=NodePort --port=8080
8282
```
8383

8484
Output:

0 commit comments

Comments
 (0)