- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Cloud Run Revisions and Traffic Routing
In this lab, we’ll explore the traffic management options of Cloud Run. We’ll deploy an application, then roll out a breaking change and perform a rollback. Then, we’ll deploy a fix, with traffic splitting between our versions, before finally routing all traffic to the latest version. You should be familiar with the GCP console and Cloud Shell to perform this hands-on lab.

Lab Info
Table of Contents
-
Challenge
Deploy the Application
- Use either the gcloud SDK or the GCP web console to create the Cloud Run service.
- Use the container image with the blue tag from your project’s container registry to launch the blue version of the demo application.
-
Challenge
Roll Back a Breaking Change
- Create a new revision of the service in Cloud Run by changing to the purple tag of the container image.
- Roll back to the previous version by routing 100% of traffic to the old revision.
Note: You can achieve the above with either the gcloud SDK or the GCP web console.
-
Challenge
Perform a Gradual Rollout
- Create a new revision of the service with the green tag of the container image, but deploy it without routing traffic.
- Adjust the traffic splitting: Direct 50% of traffic to the new green version and 50% to the previous blue version.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.