Repository navigation
Releases
v0.2.0
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).
v0.1.2
A small release before the v0.2 operator. podserve now checks your GPU quota before it creates
anything, podserve's spend can be read on its own in a shared project, and everything a public test
of v0.1.1 found is fixed.
Added
podserve planshows the GPU quota the model needs. A newQuota:line names the regional
quota the planned GPUs count against, spot or on-demand, with its limit, the amount in use, the
room left and the need, for example:Quota: spot PREEMPTIBLE_NVIDIA_L4_GPUS in us-central1, project my-gcp-project: limit 16, in use 0, free 16, need 1- New flags:
--projectand--region(default: gcloud's), and--spot(defaulttrue) to
see the on-demand quota instead. (short by N)marks too little room;(no quota)marks a limit of 0.- When it can't check, it prints
not checkedwith the reason: gcloud isn't installed, no
project or region is set, gcloud failed or took more than 10 seconds, or the region doesn't
list that quota (H100 in us-central1, for one).planstill works, offline too: gcloud runs
with stdin closed and is stopped after 10 seconds, so it can't prompt or hang. plan -o jsonhas aquotaobject with the same fields.
- New flags:
podserve deploychecks the quota first. Before it creates anything,deployruns the same
check against the platform's own project and region:- a limit of 0 refuses the deploy with exit 3 and code
NO_GPU_QUOTA, and the message suggests
the other capacity (--spot=falseor--spot=true); - too little room, or a check that couldn't run, prints
warning: quota: …and deploys anyway; --dry-runskips the check.
- a limit of 0 refuses the deploy with exit 3 and code
- Cost labels. Terraform labels every resource it creates that takes labels with
managed-by=podserveandpodserve-install=<name>(Terraform'sname,podserveby default):
the cluster, the model bucket, both Artifact Registry repositories and the HF-token secret. It
also turns on GKE cost allocation. Filter Cloud Billing by these labels to see podserve's spend.
Cloud NAT takes no labels: read it by its SKUs.
Fixed
podserve statusof a model being fetched saidStage: node. It now saysStage: fetch,
with the stored message, and-o jsonhas"stage": "fetch".- The load-test example only worked in the project it was written in: its image was hard-coded.
hack/quickstart-run.sh(LOADTEST=1) now takes the image from the cluster's
podserve-platformConfigMap, so it works in any project and region, and
deploy/examples/loadtest-job.yamlsays to replace both the project ID and the region. - The cache marker (
_PODSERVE_COMPLETE) always recorded"podserve": "dev". The fetch Job now
gets the CLI's version (PODSERVE_VERSION), so the marker records which podserve cached the
weights. - An unknown
-ovalue (-o yaml) silently printed text.plan,listandstatusnow exit 2
withpodserve: unknown output format yaml; want text or json, before doing anything else. deploy's derived name could be invalid: a repo name starting with a digit gave 42
characters, and a cut could leave a trailing-. The name derived from the repo (when--name
isn't given) now always fits: at most 40 characters, starting with a letter.- The docs:
docs/design/cli.md'splanexample said 18110 tokens;planprints 18114.docs/design/platform.mdlisted only some of the node service account's roles, left
PODSERVE_VERSIONout of the fetch Job's inputs, and saiddeployneeds no local Hugging Face
token (it plans withHF_TOKEN).docs/quickstart.mdcalled the dashboard "podserve: model service"; it is
"podserve - model service".
Upgrading from v0.1.1
- Rebuild the CLI. Running models keep running.
- Run
terraform applywith v0.1.2's Terraform to add the labels and turn on GKE cost allocation.
Review its plan before you confirm, as always.
v0.1.1
A hardening release before the v0.2 operator. podserve deploy now says why a model won't start,
instead of waiting 30 minutes.
Changed
-
deployfails fast, with the reason.- It stops as soon as Kubernetes reports that the model can't start:
- a crash loop;
- an image that can't be pulled for 2 minutes;
- an invalid image name;
- a container that can't be created.
- It prints the reason in Kubernetes' own words. For a crash loop it also prints the container's
exit code and the last lines of vLLM's log, for example
vllm: error: unrecognized arguments: --no-such-flag. - It exits 7, a new exit code: "the model failed to start".
- It stops as soon as Kubernetes reports that the model can't start:
-
A failed or timed-out deploy releases the GPU. The model is scaled to zero, so Autopilot
releases the GPU node, and its record stays with phaseFailedand the reason. Run
podserve deployagain to retry, orpodserve deleteto remove it. Before, a crash-looping pod
kept its GPU node until you deleted the model. -
deploysays why it's waiting. A line prints under the current stage each time the reason
changes:TriggeredScaleUp: Autopilot is adding a node;FailedScaleUporNotTriggerScaleUp: Autopilot couldn't or wouldn't;TerminationByKubelet: a spot node was reclaimed and the pod is being replaced;ErrImagePull: an image pull is failing, for under 2 minutes so far.
If the pod goes back to an earlier stage, for example to
nodeafter its spot node is
reclaimed, that stage's line prints again. A timeout names the last reason, not just the stage. -
Readiness counts only the newest pods. Redeploying a model over a running one no longer
reports ready from the old pod, and old pods that are still shutting down no longer fail the new
deploy. -
The model bucket's name no longer contains your project ID. vLLM shows the
gs://path of the
weights in/v1/models, which every API client can read. The bucket is now
podserve-models-<12 hex characters of a hash of the project ID>. See "Upgrading" below. -
extraArgscan't set an argument podserve owns, in any form vLLM accepts. That covers
underscores (--max_model_len), abbreviations (--max-model,-t), dotted keys
(--model-loader-extra-config.x), one item with a space ("--port 8001"), and--config FILE. -
The Go module is
github.com/ryanymt/podserve. You can install the CLI with
go install github.com/ryanymt/podserve/cmd/podserve@v0.1.1, andpodserve versionprints the
version it was built from.
Added
podserve status NAME [-o text|json]. It shows the model's phase, the stage its pods are at,
and why it is waiting or failed.
Fixed
deploy's fetch line printed a GCS path that didn't exist (a 12-character commit ID). It now
prints the real path, with the full commit SHA.- Hub requests for a revision that contains
/(such asrefs/pr/1) went to the wrong URL. podserve initprinted Cloud Build's whole log on stdout. The log now goes to stderr.deployno longer prints Autopilot's routine admission warnings ("Autopilot added
tolerations…"). Other warnings still print.
Upgrading from v0.1
The model bucket is renamed, so an existing install moves to a new, empty bucket. Its cached weights
are copied from the Hub once more on the next deploy of each model.
./podserve delete <NAME>for each model (./podserve listshows them).terraform -chdir=deploy/terraform apply. It replaces the model bucket.terraform -chdir=deploy/terraform output -json > platform.json, then
./podserve init --config platform.json. The platform settings then point at the new bucket../podserve deploy …each model again.
Skipping step 1 leaves running models pointed at the old bucket. A fetch Job less than an hour old
would also be reused against it.