- Lab
- A Cloud Guru
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.
Path 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.
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.