Skip to content

Commit 4774f79

Browse files
Dan Gerdesmeierknative-prow-robot
authored andcommitted
Update sample to use the new URL field (#1121)
* 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 * Update docs/serving/samples/blue-green-deployment.md Co-Authored-By: dgerd <[email protected]> * Update docs/serving/samples/blue-green-deployment.md Co-Authored-By: dgerd <[email protected]>
1 parent 8c7a02c commit 4774f79

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

docs/serving/samples/blue-green-deployment.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,12 @@ Revision 2 of the app is staged at this point. That means:
168168

169169
- No traffic will be routed to revision 2 at the main URL,
170170
http://blue-green-demo.default.YOUR_CUSTOM_DOMAIN.com
171-
- Knative creates a new route named v2 for testing the newly deployed version at
172-
http://v2.blue-green-demo.default.YOUR_CUSTOM_DOMAIN.com
171+
- Knative creates a new route named v2 for testing the newly deployed version.
172+
The URL of this can be seen in the status section of your Route.
173+
174+
```bash
175+
kubectl get route blue-green-demo --output jsonpath="{.status.traffic[*].url}"
176+
```
173177

174178
This allows you to validate that the new version of the app is behaving as
175179
expected before switching any traffic over to it.
@@ -243,8 +247,13 @@ Refresh the original route
243247
(http://blue-green-demo.default.YOUR_CUSTOM_DOMAIN.com) a few times to verify
244248
that no traffic is being routed to v1 of the app.
245249

246-
We added a named route to v1 of the app, so you can now access it at
247-
http://v1.blue-green-demo.default.YOUR_CUSTOM_DOMAIN.com.
250+
We added a named route to v1 of the app, so you can now access it at the URL
251+
listed in the traffic block of the status section. To get the URL, enter the
252+
following command:
253+
254+
```bash
255+
kubectl get route blue-green-demo --output jsonpath="{.status.traffic[*].url}"
256+
```
248257

249258
With all inbound traffic being directed to the second revision of the
250259
application, Knative will soon scale the first revision down to 0 running pods

0 commit comments

Comments
 (0)