gke-ai-troubleshooting-tpu-slice-mig-stuck-updating
できること
バックエンドのCompute Engineインスタンスグループが安定していないときに、TPUスライスやJobSetが止まる理由を、AIエージェントが調べる手助けをします。GKEでTPUスライスを動かすエンジニア向けです。
使う場面
- ✓不安定なインスタンスグループが原因かもしれず、SliceCreationFailedでTPUスライスの作成が失敗するとき。
- ✓JobSetが保留のままで、そのインスタンスグループがisStable falseを示しているとき。
- ✓インスタンスグループがまだ目標のバージョンに達していないとき。
スキルのリンク
https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-tpu-slice-mig-stuck-updating/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のTPU JobSetが1時間保留のままで、インスタンスグループが安定していないと表示されています。何を確認すべきですか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、まずスライスのステータスを確認し、その背後にあるインスタンスグループが安定しているか、目標のバージョンに達しているかを確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Troubleshoot GKE TPU slice creation blocked by an unstable MIG
This skill helps diagnose GKE TPU Dynamic Slice creation failures and JobSet
scheduling delays when the Compute Engine managed instance groups (MIGs) that
back the TPU node pool aren't stable (status.isStable: false).
A SliceCreationFailed status reason means that slice creation failed because
prerequisites weren't met (for example, required Compute Engine resources are
missing) or preflight checks failed (see
Use dynamic slicing with a custom scheduler).
A MIG that is still creating, updating, or repairing instances is one cause to
check. This skill checks the slice status first, then the stability of the
backing MIGs.
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-slice-mig-stuck-updating)"
and append agent-skills/1.0 (skill:gke-ai-troubleshooting-tpu-slice-mig-stuck-updating) to User-Agent headers.
Prerequisites
- Google Cloud SDK & Tools:
- For installing and initializing
gcloud(project selection and authentication) and enabling the GKE API, follow Before you begin. - For installing
kubectland configuring cluster credentials, follow the "Install kubectl", "Install required plugins", and "Store cluster information for kubectl" sections of Install kubectl and configure cluster access.
- For installing and initializing
- API Enablement & Billing:
- Verify that the project has an active Cloud Billing account.
- Enable APIs:
container.googleapis.com,compute.googleapis.com, andlogging.googleapis.com.
- Required IAM Roles:
- Logs Viewer (
roles/logging.viewer): Inspect Cloud Audit Logs for MIG errors. - Compute Viewer (
roles/compute.viewer): Check MIG stability (isStable) and instance progress. - Kubernetes Engine Viewer (
roles/container.viewer): Inspect Slice custom resources (slices.accelerator.gke.io), nodes, and cluster operations.
- Logs Viewer (
- Documentation:
- Use dynamic slicing with a custom scheduler (Sections: "Before you begin", "Create a Slice custom resource", "Monitor the status of the Slice custom resource", "Verify the status of the nodes and the partitions", "Upgrade your node pools")
- Install kubectl and configure cluster access (Sections: "Install kubectl", "Install required plugins", "Store cluster information for kubectl")
- Add and manage node pools (Sections: "View node pools in a Standard cluster")
- View information about MIGs and managed instances (Sections: "Check whether a MIG is stable", "Check the status of managed instances", "List instance errors")
- Automatically apply VM configuration updates in a MIG (Sections: "Verify whether an update rollout is complete")
- Manually upgrade a cluster's control plane or node pools (Sections: "Check node pool upgrade status", "Cancel a node pool upgrade", "Resume a node pool upgrade", "Roll back a node pool upgrade")
- Auto-repair nodes (Sections: "Get information about recent automated repair events")
- Troubleshoot GKE Standard node pools (Sections: "Issue: Node pool creation fails due to insufficient resources")
- [Troubleshoot TPUs in GKE
よくある質問
isStable falseとはどういう意味ですか?
インスタンスグループがまだインスタンスを作成、更新、または修復中で、まだ安定していないことを意味します。
どの確認を最初にしますか?
スライスのステータスを先に確認し、その後に背後のインスタンスグループを確認します。
プロジェクトへのアクセスは必要ですか?
はい。gcloudとGKEのツールを使うため、プロジェクトとクラスターへのアクセスが必要です。
詳細
作者による元の説明
Diagnose and resolve GKE TPU Dynamic Slice creation and JobSet scheduling failures blocked by underlying Compute Engine managed instance groups (MIGs) stuck in an updating or unstable state (isStable=False). Use when TPU slice creation fails with a SliceCreationFailed status reason, when JobSets remain stuck in pending, or when MIG status reflects isStable=False or versionTarget.isReached=False during TPU slice formation. Don't use for SliceCreationFailed causes unrelated to MIG stability (use gke-ai-troubleshooting-tpu-dynamic-slices-monitoring) or general pod scheduling failures unrelated to
repo: google/skills
人気
- GitHubのスター
- 22k
- ランキング
- #10273
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
finding-google-skills
22kセットアップ作業に合うGoogleの公式ガイドを探すようエージェントを支援します。ホスティング、データベース、ストレージ、サインイン、AIモデルの提供などが対象です。
gcloud
22kエージェントが、Google CloudのgcloudコマンドについてWeb検索に頼らず、正確な構文を確かめてから書いたり確認したりできるよう支援します。
google-cloud-recipe-auth
22kエージェントが、Google Cloudのアイデンティティとアクセス(人やサービスがどうサインインし、どの権限を得るか)について、手順を案内できるよう支援します。
google-cloud-recipe-onboarding
22k新しい開発者が、プロジェクトの選択、請求の設定、最初のリソースのデプロイなど、Google Cloudの最初の手順を進められるよう案内します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。