From b683006914b0a9e761eba6c10089fb659fc64c16 Mon Sep 17 00:00:00 2001 From: Gaurav Jain Date: Fri, 8 May 2020 16:02:27 +0530 Subject: [PATCH] fixed ingress minikube 2nd deployment commands --- .../tasks/access-application-cluster/ingress-minikube.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en/docs/tasks/access-application-cluster/ingress-minikube.md b/content/en/docs/tasks/access-application-cluster/ingress-minikube.md index c07155a2596..0a16c71064c 100644 --- a/content/en/docs/tasks/access-application-cluster/ingress-minikube.md +++ b/content/en/docs/tasks/access-application-cluster/ingress-minikube.md @@ -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