Kubernetes on GKE: When to Use It and When Cloud Run Is Enough
Kubernetes is powerful. It's also complex, expensive to operate, and often overkill. After running workloads on both GKE and Cloud Run in production, here's how I decide between them.
The short answer
Start with Cloud Run. Move to GKE only when you hit a concrete limitation, not a theoretical one. The rest of this article explains what those limitations look like and what the move costs.
Cloud Run is the right default for web services
Cloud Run handles autoscaling, SSL, custom domains and deployment with zero cluster management. You give it a container and it runs it.
For request-driven workloads, Cloud Run is almost always the better choice:
- APIs
- Web apps
- Webhooks
There are no nodes to patch, no cluster upgrades to schedule, and no capacity to plan. A service that gets no traffic can scale to zero and cost nothing. For a small team, that is a large amount of work you never have to do. If you're deploying a web app this way, Deploying Next.js to Google Cloud Run walks through the steps.
When GKE earns its overhead
GKE starts making sense when you need capabilities Cloud Run doesn't offer:
- Long-running background workers that need to maintain state.
- Workloads that require GPUs.
- Services that need to communicate over a private network with sub-millisecond latency.
- Complex scheduling requirements.
If your workload fits any of these, GKE is worth the operational overhead. If it fits none of them, you are paying the Kubernetes tax for capabilities you aren't using.
The cost math is counterintuitive
Cloud Run's per-request billing is cheaper for bursty workloads but gets expensive at sustained high traffic. GKE's node-based pricing is more predictable and often cheaper when you have consistent baseline load.
Think of it as renting by the minute versus leasing. If your service is idle most of the day and busy in spikes, paying only while requests are in flight wins easily. If it is busy around the clock, you are effectively renting by the minute all day, and a leased node costs less.
I've seen teams save 40% by moving sustained workloads from Cloud Run to GKE with node auto-provisioning. The reverse mistake is just as common: a cluster of mostly idle nodes running services that would cost almost nothing on Cloud Run.
If you choose GKE, start with Autopilot
Autopilot mode is the way to go for most teams. It handles node management, security patching and resource optimization. You define pods, and Google handles the rest.
Standard mode only makes sense when you need specific node configurations or GPUs. Otherwise you are signing up to manage node pools for no benefit.
The hybrid pattern I use most
You don't have to pick one platform for everything. One hybrid pattern I use frequently:
- Cloud Run for the web-facing API layer.
- Pub/Sub between them. The API receives requests and publishes messages.
- GKE for background processing. Workers consume messages and handle the heavy lifting.
This gives you the simplicity of Cloud Run where it matters most and the power of Kubernetes where you need it. The API stays cheap and easy to deploy, and the workers get long execution times, GPUs or whatever else the job requires. The queue in the middle also means a slow worker never makes a user's request slow.
The team factor
The team factor is often overlooked. Running GKE well requires Kubernetes expertise, and deploying pods is the easy part. You also need to understand:
- Networking
- RBAC
- Resource quotas
- Pod disruption budgets
- Upgrade strategies
If your team doesn't have this expertise, Cloud Run's simplicity is a feature, not a limitation. A platform nobody on the team fully understands is a risk, however capable it is.
A quick way to decide
Ask these questions in order:
- Is the workload request-driven, such as an API, web app or webhook? Use Cloud Run.
- Does it need GPUs, long-lived stateful workers, very low latency private networking or complex scheduling? Use GKE.
- Is traffic sustained and high all day? Run the numbers, because GKE may be cheaper.
- Does anyone on the team know how to run Kubernetes? If not, stay on Cloud Run until you must move.
My rule of thumb
Start with Cloud Run. Migrate to GKE only when you hit a concrete limitation, not a theoretical one. "We might need it later" has justified a lot of clusters that never needed to exist.
Whichever you pick, define it in code. I describe how I structure that in Terraform at Scale: Managing Multi-Environment GCP Infrastructure.