Merge pull request #20840 from GauravJain98/master
fixed ingress minikube 2nd deployment commandspull/20854/head
commit
7b8a28bd26
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue