Skip to main content

Compute Selection

Docs: Choosing a compute option

Options at a Glance​

ServiceTypeWhen to Use
Compute EngineIaaS VMsFull OS control, lift-and-shift, GPUs, custom machine types
GKE StandardKubernetesContainers, full node control, specific node configurations
GKE AutopilotManaged KubernetesContainers, hands-off node management, per-pod billing
GKE EnterpriseMulti-cluster KubernetesKubernetes across on-prem + cloud under one control plane
Cloud RunServerless containersHTTP/gRPC services, variable traffic, scales to zero
Cloud Run FunctionsFaaSSingle-purpose event-driven tasks, Pub/Sub/Storage triggers
Cloud VMware EngineManaged VMwareMigrate existing VMware workloads without re-architecture

Decision Guide​

"Full control over the OS / kernel" β†’ Compute Engine. Needed for legacy apps, licensing-tied software, GPU workloads, or Windows-specific dependencies.

"Run containers, but I want to manage the nodes myself" β†’ GKE Standard. Gives you control over node pools, machine types, and OS images.

"Run containers without managing nodes or VMs" β†’ GKE Autopilot. Google manages node provisioning; you define pod specs. Billed per pod CPU/memory, not per node.

"Kubernetes that spans on-premises and GCP under one control plane" β†’ GKE Enterprise (formerly Anthos). Unified fleet management, policy enforcement, and service mesh across clusters in any location. Required when the case study mentions hybrid Kubernetes or consistent policy across environments.

"Stateless HTTP microservice with variable or spiky traffic" β†’ Cloud Run. Scales to zero, no idle cost, request-based billing. Supports containers up to 32GB RAM.

"Trigger a function in response to a cloud event (Pub/Sub message, file upload, HTTP)" β†’ Cloud Run Functions. Best for lightweight event handlers, glue code, and webhooks.

"Lift VMware workloads to GCP with zero code changes" β†’ Cloud VMware Engine (GCVE). Runs VMware vSphere natively on GCP hardware.

GKE Autopilot vs Standard β€” Key Differences​

AutopilotStandard
Node managementGoogleYou
BillingPer podPer node
Node customisationLimitedFull
Cost at low utilisationLowerHigher (pay for idle nodes)
Cost at high utilisationCan be higherPredictable

Spot and Preemptible VMs​

  • Spot VMs β€” up to 91% cheaper; can be preempted with 30s notice. Use for fault-tolerant batch jobs, Dataflow workers, ML training.
  • Preemptible VMs β€” older version of Spot; max 24-hour lifetime. Being phased out in favour of Spot VMs.
  • Do not use for: databases, stateful services, anything requiring guaranteed uptime.

Official Documentation​