Google's capacity-advice API gives every Spot VM option four numbers: obtainability, estimated uptime, historical preemption, and Spot price. Which machine type and region should your GKE cluster try first? Part 3 combines the four into one score per option and explains why obtainability is squared, why evidence from your own cluster scales the score down, and why anything below the documented low band is dropped. Then it writes the ranking out as a GKE ComputeClass and a cluster-config.env. Part 3 of the Designed for Flexibility series.
There's a beta Compute Engine endpoint that answers "can I get twenty Spot VMs of a given machine type in this region right now?" with a number between zero and one, and most teams on Spot have never called it. A working tour of the capacity-advice APIs (advice.capacity and advice.capacityHistory): the exact request, the exact response, and the roles/compute.viewer plus ADC setup that gets you there. Read the per-zone shards, not just the headline obtainability score. The shards tell you where your capacity actually is. Then how to read the number well: these scores are advisory by design, they move between calls, and a score you read as a reservation will steer you wrong at the worst possible moment. Part 2 of the Designed for Flexibility series.
You went to Spot VMs for the discount and did the homework: checkpoint code, a drain handler, a preemption survived. Then a job sat in Pending for days across three regions and never got a single L4. Scarcity grew a second half. Interruption is losing capacity you have; a stockout is failing to get capacity at all, and you can't checkpoint your way out of one. Part 1 of the series that builds the probe the Compute Fallback Ladder left unbuilt.
I'm hiring a Senior Developer Relations Engineer for GKE and AI Infrastructure. Instead of describing the work, I built it: a small, playable cluster scheduler that teaches the real problem behind running AI at scale—gang scheduling, memory ceilings, spot preemption, and a TPU slice with actual topology.
The finale of the series: the mature end-state the first three parts build toward. When every server-side capability's trust boundary is a decision on record—the deployment tier you chose, the toggle you set, the contract you signed—saying yes to another team stops being a risk assessment and becomes a lookup. Fine-grained capability governance is what buys you safe expansion. Maturity, not lock-in. Boring, in the way a well-run system is boring.
Parts 1 and 2 argued that a capability's trust boundary is a separate decision from the model's. Part 3 is the runbook that makes the decision stick: the org-policy constraints that gate partner web search and structured outputs, set once at the organization tier by gcloud and Terraform, plus the seams org-policy doesn't reach—VPC Service Controls, request-response logging, the grounding-provider choice. Which toggle, at which scope, with deny-wins precedence, so a good-faith developer can't trip a data path nobody chose.