Prerequisites
- Terraform ≥ 1.6 installed and authenticated (
gcloud auth application-default login) - Access to the
impulse-gpu-runtimeGCP project withroles/editoror higher kubectlconfigured 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
google_pubsub_topic— job-request and job-result topicsgoogle_pubsub_subscription— scheduler subscriptions and DLQ subscriptionsgoogle_vertex_ai_*— Vertex AI custom job configurationsgoogle_service_account— runtime and scheduler service accounts
3
Apply the plan
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
Running state within 2 minutes. Probe endpoints:3. Service Account Validation
After Terraform apply, confirm service accounts have the required roles:gpu-scheduler SA:
Expected roles for
gpu-runtime SA:
4. Queue and Topic Validation
5. Pub/Sub Validation
Send a synthetic test message and verify end-to-end flow:6. Vertex AI Validation
7. Rollback Procedures
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-schedulerpods areRunning - 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