Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Labs

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.

Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 30m
Published
Clock icon Aug 21, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Deploy the Application

    1. Use either the gcloud SDK or the GCP web console to create the Cloud Run service.
    2. Use the container image with the blue tag from your project’s container registry to launch the blue version of the demo application.
  2. Challenge

    Roll Back a Breaking Change

    1. Create a new revision of the service in Cloud Run by changing to the purple tag of the container image.
    2. 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.

  3. Challenge

    Perform a Gradual Rollout

    1. Create a new revision of the service with the green tag of the container image, but deploy it without routing traffic.
    2. Adjust the traffic splitting: Direct 50% of traffic to the new green version and 50% to the previous blue version.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

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.

Start learning by doing today

View Plans