@@ -1266,27 +1266,19 @@ strategy is commonly referred to as a
12661266automatically route all traffic to the new revision if it should pass minimum
12671267health checks.</walkthrough-info-message>
12681268
1269- Let's begin by deploying an image we know works well, in this case the previous
1270- version that uses the static tortune library.
1271-
1272- ` ` ` bash
1273- gcloud run deploy jokes \
1274- --image europe-north1-docker.pkg.dev/<walkthrough-project-id/>/my-repo/dockermultistage
1275- ` ` `
1276-
12771269In Cloud Run, you can tag your individual revisions. Each tagged revision can be
12781270easily referenced to by its tag and also gets an individual endpoint, just for
12791271itself. That means we can preview the revision even without assigning production
12801272traffic to it.
12811273
1282- Let's deploy a new revision of the jokes service using a different container
1283- image. We've been told that requirements have changed dramatically for this new
1284- version. We don't trust the image and decide to implement a canary release
1285- strategy. We begin by marking the current revision as 'good'.
1274+ Let's begin by deploying an image we know works well, in this case the previous
1275+ version that uses the static tortune library. Let's also tag this revision as
1276+ ' good' .
12861277
12871278` ` ` bash
1288- gcloud run services update jokes \
1289- --tag good
1279+ gcloud run deploy jokes \
1280+ --tag good \
1281+ --image europe-north1-docker.pkg.dev/<walkthrough-project-id/>/my-repo/dockermultistage
12901282` ` `
12911283
12921284Good! The revision is tagged and gets a separate URL that looks something like
@@ -1298,6 +1290,11 @@ try it by directly cURLing it:
12981290curl $(gcloud run services describe jokes --format 'value(status.traffic[0].url)')
12991291` ` `
13001292
1293+ Let's assume we are now told to deploy a new version and that we've been told
1294+ that requirements have changed dramatically and it ships many changes.
1295+ Naturally, we don't trust the image and decide to implement a canary release
1296+ strategy.
1297+
13011298Now, let's deploy the new image, tag it and **route no traffic to it**, like so :
13021299
13031300` ` ` bash
0 commit comments