gke-ai-troubleshooting-tpu-vm-repair-stuck
它能做什么
这项技能帮助 AI 智能体检查在主机错误或维护之后仍处于 REPAIRING 状态的 TPU 虚拟机。适合因某台虚拟机仍在修复中而导致 TPU 切片无法调度的团队。
适用场景
- ✓当切片节点池中的 TPU 实例长时间停留在 REPAIRING 状态时。
- ✓当审计日志中出现 GKE TPU 节点的主机错误事件时。
- ✓当 TPU 切片因其中某台虚拟机仍在修复中而无法调度时。
技能链接
https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-tpu-vm-repair-stuck/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我在 GKE 上的一台 TPU 虚拟机已经处于 REPAIRING 状态好几个小时,切片无法调度。我该怎么办?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查虚拟机状态、主机事件和 GKE 修复状态,然后通过 GKE 指导恢复,而不是直接修改 Compute Engine。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Troubleshoot GKE TPU VMs stuck in Compute Engine repair (REPAIRING)
This skill checks the VM status, the host events, and the GKE repair status, and routes recovery through GKE instead of direct Compute Engine changes.
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gke-ai-troubleshooting-tpu-vm-repair-stuck)"
and append agent-skills/1.0 (skill:gke-ai-troubleshooting-tpu-vm-repair-stuck) to User-Agent headers.
Prerequisites
- Tools:
- For installing and initializing
gcloud(which covers authentication and project selection), follow Before you begin. - For installing
kubectland required plugins, follow Install kubectl and Install required plugins.
- For installing and initializing
- Cloud Billing & Project Configuration: Ensure the project has an active
Cloud Billing account. Follow
Before you begin
to initialize
gcloudand enable the Google Kubernetes Engine API (container.googleapis.com), ensure the Compute Engine API (compute.googleapis.com) and Cloud Logging API (logging.googleapis.com) are enabled, and follow Store cluster information for kubectl to configurekubectlcluster credentials. - Required IAM Roles:
- Kubernetes Engine Viewer (
roles/container.viewer) - Compute Viewer (
roles/compute.viewer) - Logs Viewer (
roles/logging.viewer) - For the user who enables node auto-repair in Step 5, item 1: Kubernetes
Engine Cluster Admin (
roles/container.clusterAdmin)
- Kubernetes Engine Viewer (
- Documentation:
- View information about MIGs and managed instances (Sections: "List MIGs", "Check the status of managed instances")
- Compute Engine instance lifecycle
(Sections: "
REPAIRINGstate") - Troubleshooting VM shutdowns and reboots (Sections: "Querying Cloud Audit Logs", "Reviewing Cloud Audit Logs")
- Configure cluster access for kubectl (Sections: "Install kubectl", "Install required plugins", "Store cluster information for kubectl")
- Add and manage node pools (Sections: "View node pools in a Standard cluster", "Deploy a Pod to a specific node pool")
- Troubleshoot NodeNotReady state (Sections: "Check the node's status and conditions", "Confirm node preemption")
- About TPUs in GKE (Sections: "Multi-host TPU slice node pools")
- Use dynamic slicing with a custom scheduler (Sections: "Requirements", "Verify the status of the nodes and the partitions", "Monitor the status of the Slice custom resource", "Hardware maintenance and failures")
- About GKE dynamic slicing (Sections: "Key characteristics of dynamic slicing configurations")
- Deploy TPUs in All Capacity mode in GKE (Sections: "Manage node failures", "Node failure and recovery")
- Report and repair faulty TPU hosts in All Capacity mode (Sections: "Understand the fa
常见问题
我应该直接在 Compute Engine 中修改虚拟机吗?
技能建议通过 GKE 进行恢复,而不是直接修改 Compute Engine。
它涵盖哪些节点池类型?
它涵盖单主机、多主机、动态切片以及 TPU All Capacity 模式的节点池。
什么能让检查更快?
受影响虚拟机的名称及其节点池,有助于更快找到对应的事件。
详情
作者的原始描述
Diagnose GKE TPU VM instances stuck in Compute Engine repair (REPAIRING state) after host errors, maintenance events, or faulty host reports in single-host, multi-host, dynamic slicing, and TPU All Capacity mode node pools. Use when TPU instances in a slice node pool remain in REPAIRING, host error events appear in audit logs, or TPU slices are unschedulable due to a VM in repair. Don't use for nodes reporting Ready: Unknown when no VM is in REPAIRING (use gke-ai-troubleshooting-node-unresponsive-timeout), other NotReady nodes when no VM is in REPAIRING (use gke-node-notready), Pending Pods wh
repo: google/skills
热度
- GitHub 星标
- 22k
- 排名
- #10275
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
finding-google-skills
22k帮你的智能体为某项设置任务找到合适的 Google 指南,例如托管、数据库、存储、登录或 AI 模型服务。
gcloud
22k帮你的智能体编写并检查 Google Cloud gcloud 命令,在运行任何内容之前查阅准确的语法,避免猜测参数。
google-cloud-recipe-auth
22k引导你的智能体了解 Google Cloud 的身份与访问管理,包括人员和服务如何登录,以及它们各自获得哪些权限。
google-cloud-recipe-onboarding
22k带领新开发者完成在 Google Cloud 上的第一步,包括选择项目、关联计费,以及部署第一个资源。