Skip to content

Releases

v0.2.0

Choose a tag to compare

@ryanymt ryanymt released this 01 Dec 15:38

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 the podserve namespace) 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 apply works on its own: a ModelService applied with no CLI goes to Ready.
    • A model that can't start is stopped, as v0.1.1's deploy did: 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 annotation podserve.dev/start-timeout changes it, and
      deploy --timeout sets 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 init installs 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 model field 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/models lists every deployed model.
    • A model that isn't deployed gets 404 with code model_not_found and the deployed models'
      names. One that is deployed but not routed yet gets 503 with Retry-After: 30
      (model_not_ready), and one that has stopped 503 with model_stopped. A request with no
      model gets 400 (model_required).
  • podserve port-forward with no name forwards localhost:8000 to 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.
  • init builds 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.
    • plan names the quota that applies, for example
      Quota: spot NVIDIA_L4_GPUS (no PREEMPTIBLE_NVIDIA_L4_GPUS quota) in us-central1, …, and
      -o json has its metric;
    • deploy refuses 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 podserve namespace, and waits until GKE has removed the network
    endpoint groups it made for the gateway, before terraform destroy:
    ./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
    Without the wait, destroy can 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 ran init.

Upgrading from v0.1.x

Running models aren't adopted: redeploy them.

  1. Build the v0.2.0 CLI first. A v0.1.x CLI against the operator is unsupported: both would write
    the model's status.
  2. Delete your models with podserve delete.
  3. terraform apply. On a v0.1.2 install it adds 4 resources and changes or destroys none.
  4. podserve init --config platform.json.
  5. 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

Choose a tag to compare

@ryanymt ryanymt released this 29 Nov 16:45

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 plan shows the GPU quota the model needs. A new Quota: 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: --project and --region (default: gcloud's), and --spot (default true) 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 checked with 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). plan still works, offline too: gcloud runs
      with stdin closed and is stopped after 10 seconds, so it can't prompt or hang.
    • plan -o json has a quota object with the same fields.
  • podserve deploy checks the quota first. Before it creates anything, deploy runs 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=false or --spot=true);
    • too little room, or a check that couldn't run, prints warning: quota: … and deploys anyway;
    • --dry-run skips the check.
  • Cost labels. Terraform labels every resource it creates that takes labels with
    managed-by=podserve and podserve-install=<name> (Terraform's name, podserve by 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 status of a model being fetched said Stage: node. It now says Stage: fetch,
    with the stored message, and -o json has "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-platform ConfigMap, so it works in any project and region, and
    deploy/examples/loadtest-job.yaml says 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 -o value (-o yaml) silently printed text. plan, list and status now exit 2
    with podserve: 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's plan example said 18110 tokens; plan prints 18114.
    • docs/design/platform.md listed only some of the node service account's roles, left
      PODSERVE_VERSION out of the fetch Job's inputs, and said deploy needs no local Hugging Face
      token (it plans with HF_TOKEN).
    • docs/quickstart.md called the dashboard "podserve: model service"; it is
      "podserve - model service".

Upgrading from v0.1.1

  • Rebuild the CLI. Running models keep running.
  • Run terraform apply with 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

Choose a tag to compare

@ryanymt ryanymt released this 20 Nov 09:31

A hardening release before the v0.2 operator. podserve deploy now says why a model won't start,
instead of waiting 30 minutes.

Changed

  • deploy fails 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".
  • 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 phase Failed and the reason. Run
    podserve deploy again to retry, or podserve delete to remove it. Before, a crash-looping pod
    kept its GPU node until you deleted the model.

  • deploy says why it's waiting. A line prints under the current stage each time the reason
    changes:

    • TriggeredScaleUp: Autopilot is adding a node;
    • FailedScaleUp or NotTriggerScaleUp: 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 node after 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.

  • extraArgs can'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, and podserve version prints 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 as refs/pr/1) went to the wrong URL.
  • podserve init printed Cloud Build's whole log on stdout. The log now goes to stderr.
  • deploy no 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.

  1. ./podserve delete <NAME> for each model (./podserve list shows them).
  2. terraform -chdir=deploy/terraform apply. It replaces the model bucket.
  3. terraform -chdir=deploy/terraform output -json > platform.json, then
    ./podserve init --config platform.json. The platform settings then point at the new bucket.
  4. ./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.