From e74cb9463fb676fcf4b20312e202ef895428cdee Mon Sep 17 00:00:00 2001 From: Dan Gerdesmeier Date: Sat, 30 Mar 2019 00:29:21 +0000 Subject: [PATCH 1/3] Update sample to use the new URL field This updates the blue green sample to use the new URL field instead of asking the user to query a fixed URL. Fixes #1078 --- docs/serving/samples/blue-green-deployment.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/serving/samples/blue-green-deployment.md b/docs/serving/samples/blue-green-deployment.md index 6a7cda7e6ae..ac5780a9804 100644 --- a/docs/serving/samples/blue-green-deployment.md +++ b/docs/serving/samples/blue-green-deployment.md @@ -168,8 +168,12 @@ Revision 2 of the app is staged at this point. That means: - No traffic will be routed to revision 2 at the main URL, http://blue-green-demo.default.YOUR_CUSTOM_DOMAIN.com -- Knative creates a new route named v2 for testing the newly deployed version at - http://v2.blue-green-demo.default.YOUR_CUSTOM_DOMAIN.com +- Knative creates a new route named v2 for testing the newly deployed version. + The URL of this can be seen in the status section of your Route. + +```bash +kubectl get route blue-green-demo --output jsonpath="{.status.traffic[*].url}" +``` This allows you to validate that the new version of the app is behaving as expected before switching any traffic over to it. @@ -243,8 +247,13 @@ Refresh the original route (http://blue-green-demo.default.YOUR_CUSTOM_DOMAIN.com) a few times to verify that no traffic is being routed to v1 of the app. -We added a named route to v1 of the app, so you can now access it at -http://v1.blue-green-demo.default.YOUR_CUSTOM_DOMAIN.com. +We added a named route to v1 of the app, so you can now access it at the URL +listed in the traffic block of status. To get the url you can execute the +command below: + +```bash +kubectl get route blue-green-demo --output jsonpath="{.status.traffic[*].url}" +``` With all inbound traffic being directed to the second revision of the application, Knative will soon scale the first revision down to 0 running pods From dccee0788516648ba7be5be828e666fd92519b10 Mon Sep 17 00:00:00 2001 From: Sam O'Dell <31352624+samodell@users.noreply.github.com> Date: Wed, 3 Apr 2019 11:29:43 -0700 Subject: [PATCH 2/3] Update docs/serving/samples/blue-green-deployment.md Co-Authored-By: dgerd --- docs/serving/samples/blue-green-deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/serving/samples/blue-green-deployment.md b/docs/serving/samples/blue-green-deployment.md index ac5780a9804..ca36fd5b100 100644 --- a/docs/serving/samples/blue-green-deployment.md +++ b/docs/serving/samples/blue-green-deployment.md @@ -248,7 +248,7 @@ Refresh the original route that no traffic is being routed to v1 of the app. We added a named route to v1 of the app, so you can now access it at the URL -listed in the traffic block of status. To get the url you can execute the +listed in the traffic block of the status section. To get the URL, enter the command below: ```bash From ad6e6792e09c49dc235b33d746b1949b4993f5c1 Mon Sep 17 00:00:00 2001 From: Sam O'Dell <31352624+samodell@users.noreply.github.com> Date: Wed, 3 Apr 2019 11:29:54 -0700 Subject: [PATCH 3/3] Update docs/serving/samples/blue-green-deployment.md Co-Authored-By: dgerd --- docs/serving/samples/blue-green-deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/serving/samples/blue-green-deployment.md b/docs/serving/samples/blue-green-deployment.md index ca36fd5b100..d2df03bdc35 100644 --- a/docs/serving/samples/blue-green-deployment.md +++ b/docs/serving/samples/blue-green-deployment.md @@ -249,7 +249,7 @@ that no traffic is being routed to v1 of the app. We added a named route to v1 of the app, so you can now access it at the URL listed in the traffic block of the status section. To get the URL, enter the -command below: +following command: ```bash kubectl get route blue-green-demo --output jsonpath="{.status.traffic[*].url}"