Merge pull request #20840 from GauravJain98/master

fixed ingress minikube 2nd deployment commands
pull/20854/head
Kubernetes Prow Robot 2020-05-08 19:11:53 -07:00 committed by GitHub
commit 7b8a28bd26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ This page shows you how to set up a simple Ingress which routes requests to Serv
1. Create a Deployment using the following command:
```shell
kubectl create deployment web --image=gcr.io/google-samples/hello-app:1.0 --port=8080
kubectl create deployment web --image=gcr.io/google-samples/hello-app:1.0
```
Output:
@ -203,7 +203,7 @@ The following file is an Ingress resource that sends traffic to your Service via
1. Create a v2 Deployment using the following command:
```shell
kubectl run web2 --image=gcr.io/google-samples/hello-app:2.0 --port=8080
kubectl create deployment web2 --image=gcr.io/google-samples/hello-app:2.0
```
Output:
@ -214,7 +214,7 @@ The following file is an Ingress resource that sends traffic to your Service via
1. Expose the Deployment:
```shell
kubectl expose deployment web2 --target-port=8080 --type=NodePort
kubectl expose deployment web2 --port=8080 --type=NodePort
```
Output:
@ -228,7 +228,7 @@ The following file is an Ingress resource that sends traffic to your Service via
1. Edit the existing `example-ingress.yaml` and add the following lines:
```yaml
- path: /v2/*
- path: /v2
backend:
serviceName: web2
servicePort: 8080