← Cloud Run160 / 640
easygcloud

Split Cloud Run traffic between two revisions for a canary rollout

command

gcloud run services update-traffic checkout-api --to-revisions=checkout-api-00003=10,checkout-api-00002=90

Command breakdown

Part of the Google Cloud CLI (gcloud) — Cloud Run category.

gcloudrunservicesupdate-trafficcheckout-api--to-revisions=checkout-api-00003=10,checkout-api-00002=90
FlagPurpose
--to-revisionsSet to: checkout-api-00003=10,checkout-api-00002=90

Test your recall — not just your reading.

Practice with interactive quiz →