VOOZH about

URL: https://thenewstack.io/how-google-cloud-run-combines-serverless-with-containers/

⇱ How Google Cloud Run Combines Serverless with Containers - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2019-04-12 09:15:45
How Google Cloud Run Combines Serverless with Containers
analysis,tutorial,
Cloud Services / Kubernetes

How Google Cloud Run Combines Serverless with Containers

One of the most exciting launches from Google Cloud Next 2019 is Cloud Run, a serverless environment based on containers and Kubernetes.Cloud Run comes across as a clusterless and serverless container execution environment. Some attendees even compared it with AWS Fargate and Azure Container Instances. But Google Cloud Run takes a different approach than the other serverless container platforms.
Apr 12th, 2019 9:15am by Janakiram MSV
👁 Featued image for: How Google Cloud Run Combines Serverless with Containers
Feature image by peter_pyw from Pixabay.

One of the most exciting launches from Google Cloud Next 2019 is Cloud Run, a serverless environment based on containers and Kubernetes.

Cloud Run comes across as a clusterless and serverless container execution environment. Some attendees even compared it with AWS Fargate and Azure Container Instances. But Google Cloud Run takes a different approach than the other serverless container platforms.

Let’s take a closer look at this technology.

The Knative Connection

At last year’s Next event, Google announced Knative, an open source platform built on top of Kubernetes and Istio. The project is developed in collaboration with IBM, Red Hat, Pivotal, and SAP.

At a high level, Knative adds an abstraction layer that simplifies the workflow involved in deploying code to Kubernetes.

Since Kubernetes is an infrastructure layer, developers work with the operations team to deploy and scale apps. Knative removes the ops layer by enabling developers to directly target Kubernetes.

Knative has a set of building blocks for building serverless platform on Kubernetes. But dealing with it directly doesn’t make developers efficient or productive. While it acts as the meta-platform running on the core Kubernetes infrastructure, the developer tooling and workflow is left to the platform providers.

Knative has three core elements:

  1. Build: This component is responsible for generating a container image from source code.
  2. Serving: This component simplifies exposing an app without having to configure resources such as ingress and a load balancer.
  3. Eventing: Eventing provides a mechanism to consume and produce events in a pub/sub style. This is useful for invoking code based on external or internal events.

The key advantage of using Knative is scale to zero where the runtime automatically terminates and schedules pods based on the inbound traffic. If there are no active clients, a microservice may automatically get shut down and also scale when the traffic goes up.

Knative can be deployed on any Kubernetes cluster. It acts as the middleware bridging the gap between core infrastructure services and developer experience.

Cloud Run — Google’s Own Implementation of Knative

Google is one of the first public cloud providers to deliver a commercial service based on the open source Knative project. Like the way it offered a managed Kubernetes service before any other provider, Google moved fast in exposing Knative through Cloud Run to developers.

Cloud Run is a layer that Google built on top of Knative to simplify deploying serverless applications on the Google Cloud Platform.

Knative has a set of building blocks for building serverless platform on Kubernetes. But dealing with it directly doesn’t make developers efficient or productive. While it acts as the meta-platform running on the core Kubernetes infrastructure, the developer tooling and workflow is left to the platform providers.

👁 Image

Cloud Run is an abstraction layer on top of Kubernetes and Knative that makes the platform accessible to developers.

What Problem Does Cloud Run Solve?

Though containers have become the de facto standard for packaging code and Kubernetes for deploying the apps, there are multiple steps involved in the workflow.

From the time the developer commits the code to access the app, she has to go through the below workflow:

  • Create a Docker file with all the dependencies and installation steps,
  • Build the container image from the Docker file,
  • Push the image to the container registry,
  • Create a Kubernetes YAML file for the Deployment with the container,
  • Create another YAML file for exposing the Deployment as a Service,
  • Deploy the Pod and Service,
  • Access the App through the endpoint.

Google Cloud Run shortens the path between committing the code and accessing the app. With the help of tools such as Cloud Code, Skaffold and Jib, developers can write code, test it locally and deploy the code to Kubernetes without the intervention of DevOps teams.

Flavors of Cloud Run

Currently in beta, Google Cloud Run is available as a standalone environment and within the Google Kubernetes Engine (GKE).

Developers can deploy apps to Cloud Run through the console or CLI. If there is a GKE cluster with Istio installation, apps targeting Cloud Run can be easy deployed to an existing Kubernetes cluster.

Each deployment to a service creates a revision. A revision consists of a specific container image, along with environment settings such as environment variables, memory limits, or concurrency value.

Requests are automatically routed as soon as possible to the latest healthy service revision.

Cloud Run — PaaS Done Right

My initial observation is that Cloud Run delivers the same promise as the original PaaS. The fundamental difference between PaaS and Cloud Run lies in transparency. Since the underlying layer is based on Knative, every step can be easily mapped to the functionality of Istio and Kubernetes.

When Cloud Run becomes available on GKE On-Prem and Anthos, customers will be able to target a consistent platform with a repeatable workflow to deploy modern applications.

In one of the upcoming articles, I will cover the steps to deploy apps on Cloud Run. Stay tuned.

Janakiram MSV’s Webinar series, “Machine Intelligence and Modern Infrastructure (MI2)” offers informative and insightful sessions covering cutting-edge technologies. Sign up for the upcoming MI2 webinar to learn how to use Azure IoT Edge. 

TRENDING STORIES
Janakiram MSV (Jani) is a practicing architect, research analyst, and advisor to Silicon Valley startups. He focuses on the convergence of modern infrastructure powered by cloud-native technology and machine intelligence driven by generative AI. Before becoming an entrepreneur, he spent...
Read more from Janakiram MSV
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Docker.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.