Repository navigation
An operator in the cluster now runs each model, and every model answers on one OpenAI-compatible
endpoint inside your VPC, through GKE Inference Gateway. podserve becomes the operator's client:
its commands print the same lines and exit with the same codes as before.
Added
- The operator (
podserve-operator, in thepodservenamespace) reconciles each
ModelService: it plans the model again, runs the fetch, creates the model's Deployment, Service,
PodMonitoring and route, and writes the phase, the stage and the reason to the status.kubectl applyworks on its own: aModelServiceapplied with no CLI goes to Ready.- A model that can't start is stopped, as v0.1.1's
deploydid: the status keeps
Kubernetes' reason and the last lines of vLLM's log, and the model is scaled to zero. A crash
loop is caught before its third back-off. - A start timeout: a model that isn't Ready 30 minutes after its fetch is stopped (the fetch
has its own 30 minutes). The annotationpodserve.dev/start-timeoutchanges it, and
deploy --timeoutsets it. - Autopilot's cause: when a scale-up fails, the status says whether a quota or a stockout
stopped it, from the cluster autoscaler's log, for example
(autoscaler: no capacity for a scale-up in us-central1-c).
- One endpoint, many models.
podserve initinstalls a Gateway (podserve-gateway) on a
regional internal Application Load Balancer. Its address is in your VPC, not on the internet.- A body-based router sends each request to the model its
modelfield names, streaming
included. Each model gets an InferencePool, an endpoint picker and an HTTPRoute. - Requests may run up to 300 seconds, past the load balancer's 30-second default, for long
streams. GET /v1/modelslists every deployed model.- A model that isn't deployed gets
404with codemodel_not_foundand the deployed models'
names. One that is deployed but not routed yet gets503withRetry-After: 30
(model_not_ready), and one that has stopped503withmodel_stopped. A request with no
model gets400(model_required).
- A body-based router sends each request to the model its
podserve port-forwardwith no name forwardslocalhost:8000to the gateway, so every model
answers there by its name. With a name, it forwards to that model alone, as before.deploy:- a new stage,
route: the model is Ready once a request through the gateway reaches it; - the endpoint line is now the gateway's:
Endpoint (in the VPC): http://<ADDRESS>/v1 (model "<MODEL>"); - it exits 8, naming the command to check, if no operator answers within 60 seconds.
- a new stage,
initbuilds the operator image with Cloud Build, as it does the fetch image, installs the
operator and the gateway, and waits until the operator is running. On a new cluster that takes
about 2 minutes, while Autopilot adds a node; after 10 minutes it exits 8.- Terraform adds the load balancer's proxy-only subnet, turns on the Network Services API, and
lets the operator read the Hugging Face token secret and the cluster autoscaler's log.
Changed
- The spot quota. A spot GPU counts against the preemptible quota (
PREEMPTIBLE_NVIDIA_L4_GPUS)
when its limit is above 0, and otherwise against the standard one (NVIDIA_L4_GPUS): Google runs
spot VMs on standard quota in a project with no preemptible quota.plannames the quota that applies, for example
Quota: spot NVIDIA_L4_GPUS (no PREEMPTIBLE_NVIDIA_L4_GPUS quota) in us-central1, …, and
-o jsonhas itsmetric;deployrefuses a spot model only when both limits are 0:
… has no PREEMPTIBLE_NVIDIA_L4_GPUS or NVIDIA_L4_GPUS quota in us-central1 (both limits 0); request either one (NO_GPU_QUOTA).
- The clean-up deletes the
podservenamespace, and waits until GKE has removed the network
endpoint groups it made for the gateway, beforeterraform destroy:Without the wait,./podserve delete qwen3-8b kubectl delete namespace podserve while gcloud compute network-endpoint-groups list --project $PROJECT --filter 'name~^k8s1-.*-podserve-' --format 'value(name)' | grep -q .; do sleep 15; done terraform -chdir=deploy/terraform destroy
destroycan fail on the network those groups still hold. - The cache marker records the version of the operator that ran the fetch, which is the
version of the CLI that raninit.
Upgrading from v0.1.x
Running models aren't adopted: redeploy them.
- Build the v0.2.0 CLI first. A v0.1.x CLI against the operator is unsupported: both would write
the model's status. - Delete your models with
podserve delete. terraform apply. On a v0.1.2 install it adds 4 resources and changes or destroys none.podserve init --config platform.json.- Deploy the models again.
Not yet
- No auth on the endpoint, which is reachable only inside the VPC. From a laptop, use
podserve port-forward. - One replica per model: no autoscaling or scale to zero (v0.3).