vastai-deploy-integration

v2026.09.24

Deploy an immutable service or batch worker to a Vast.ai instance with template, health, artifact, rollback, and cleanup controls. Use when shipping an instance-based workload rather than Serverless. Trigger with: "deploy to a Vast.ai instance", "release a Vast.ai template", "roll back a Vast.ai deployment".

GitHub
安装命令
npx skhub add jeremylongshore/vastai-deploy-integration
Markdown
SKILL.md

Immutable Vast.ai Instance Deployment

Overview

Make the deployment reproducible outside the console. Bind release bytes to an immutable image and versioned template hash, launch a canary under policy, validate service and GPU health, then promote or destroy.

Prerequisites

  • Release commit, image digest, template hash, ports, environment names, and startup contract
  • Offer policy, health checks, artifact/checkpoint destinations, and maximum rollout time
  • Last-known-good image/template plus rollback and teardown owners

Instructions

Step 1: Freeze the deployment manifest

Record all non-secret template settings, image digest, on-start behavior, exposed ports, disk, label, and required GPU/host constraints.

Step 2: Validate outside production

Build and scan the image, run local contract tests, and launch a disposable canary from the exact template hash.

Step 3: Verify readiness

Bound state polling, resolve current endpoints, check process and GPU health, and execute a representative request or batch assertion.

Step 4: Promote deliberately

Create or update the production instance only after canary acceptance. Persist resource IDs and externalize important data before traffic or work begins.

Step 5: Observe the release

Track state, logs, request/job outcome, cost, disk, and checkpoint health through the acceptance window.

Step 6: Roll back or close

On regression, route work to the last-known-good template or recreate from it; copy evidence and destroy rejected or superseded instances.

Authentication

Give deployment automation only search, template, and instance permissions it needs. Keep registry, model, and storage secrets in approved runtime variables and out of template descriptions and logs.

Tool Discipline

Use Read and Grep to inspect manifests, configuration, provider output, and existing tests before proposing a mutation. Use Write or Edit only for the approved plan, implementation, test, or redacted receipt; do not create, update, destroy, or fund Vast.ai resources without explicit operator approval.

Output

  • Versioned deployment manifest and immutable identities
  • Canary and production health/acceptance evidence
  • Promotion, rollback, and superseded-resource cleanup receipt

Return release, image/template identities, offer and instance IDs, health result, acceptance window, decision, and cleanup status.

Examples

A model API is launched from a pinned template hash and image digest, passes GPU and request canaries, then replaces the previous instance; the rejected candidate is destroyed and the old template remains recorded for rollback.

Error Handling

FailureResponse
Template resolves different bytesStop and pin a new immutable hash before provisioning.
Health passes but workload assertion failsReject the release and retain the last-known-good service.
Rollback data is only on local diskCopy it externally before destructive recovery if the incident permits.
Superseded instance remainsTreat it as a cost leak and complete or escalate teardown.

Resources

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

skills/.curated/vastai-deploy-integration

默认分支

main

最新提交

e5a6c3b

Tree SHA

c2dc8e8