Skip to content

v0.2.0

Latest

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).