Merge pull request #20840 from GauravJain98/master
fixed ingress minikube 2nd deployment commands
This commit is contained in:
@@ -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:
|
1. Create a Deployment using the following command:
|
||||||
|
|
||||||
```shell
|
```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:
|
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:
|
1. Create a v2 Deployment using the following command:
|
||||||
|
|
||||||
```shell
|
```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:
|
Output:
|
||||||
|
|
||||||
@@ -214,7 +214,7 @@ The following file is an Ingress resource that sends traffic to your Service via
|
|||||||
1. Expose the Deployment:
|
1. Expose the Deployment:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl expose deployment web2 --target-port=8080 --type=NodePort
|
kubectl expose deployment web2 --port=8080 --type=NodePort
|
||||||
```
|
```
|
||||||
|
|
||||||
Output:
|
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:
|
1. Edit the existing `example-ingress.yaml` and add the following lines:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- path: /v2/*
|
- path: /v2
|
||||||
backend:
|
backend:
|
||||||
serviceName: web2
|
serviceName: web2
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
|
|||||||
Reference in New Issue
Block a user