Skip to main content
This runbook covers the full deployment lifecycle for the GPU Runtime stack, including Terraform infrastructure, scheduler services, supporting queues, and validation checkpoints.
Always perform deployments from the development branch in a maintenance window. Coordinate with on-call before proceeding to production.

Prerequisites

  • Terraform ≥ 1.6 installed and authenticated (gcloud auth application-default login)
  • Access to the impulse-gpu-runtime GCP project with roles/editor or higher
  • kubectl configured for the target cluster (gke_impulse-gpu-runtime_<region>_gpu-scheduler)
  • Pub/Sub and Vertex AI APIs enabled in the target project

1. Terraform Rollout Steps

1

Pull latest Terraform state

2

Plan and review changes

Review the plan output carefully. Expected resources include:
  • google_pubsub_topic — job-request and job-result topics
  • google_pubsub_subscription — scheduler subscriptions and DLQ subscriptions
  • google_vertex_ai_* — Vertex AI custom job configurations
  • google_service_account — runtime and scheduler service accounts
3

Apply the plan

Monitor the output for errors. A successful apply ends with:
4

Commit the updated state

Terraform remote state is stored in GCS (gs://impulse-tfstate/gpu-runtime). Verify the state file was updated:

2. Scheduler Deployment Steps

1

Build and push the scheduler image

2

Update the Kubernetes deployment

3

Verify pod health

All pods should reach Running state within 2 minutes. Probe endpoints:

3. Service Account Validation

After Terraform apply, confirm service accounts have the required roles:
Expected roles for gpu-scheduler SA: Expected roles for gpu-runtime SA:

4. Queue and Topic Validation

Expected subscription configuration:

5. Pub/Sub Validation

Send a synthetic test message and verify end-to-end flow:
Verify the corresponding result message appears on the result topic:

6. Vertex AI Validation


7. Rollback Procedures

Rollback should be initiated immediately if health checks fail after deployment. Do not wait more than 5 minutes after a failed deployment before initiating rollback.

Kubernetes rollback

Terraform rollback

If infrastructure changes need to be reverted:

Emergency: disable job intake

If a deployment causes runaway job submission, pause the subscription:

Post-Deployment Checklist

  • All gpu-scheduler pods are Running
  • Health endpoint returns {"status":"ok"}
  • Probe message processed successfully end-to-end
  • No error-rate increase in Cloud Monitoring dashboards
  • Service account roles match the expected table above
  • DLQ subscriptions have zero undelivered messages
  • On-call notified of deployment completion