본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)22k · #10272

gke-ai-troubleshooting-tpu-reservation-stockout

하는 일

이 스킬은 GCE_STOCKOUT 같은 TPU 노드 풀 생성이나 확장 오류를 진단하도록 AI 에이전트를 돕습니다. 여유가 있어야 할 TPU 예약이 가득 찬 것처럼 보이는 팀을 위한 스킬입니다.

사용하는 경우

  • ✓TPU 노드 풀을 만들 때 GCE_STOCKOUT이나 ZONE_RESOURCE_POOL_EXHAUSTED로 실패할 때.
  • ✓목표 예약에 빈 자리가 있어야 하는데도 TPU 노드 풀 확장이 실패할 때.
  • ✓자동 복구가 꺼진 NotReady TPU 노드 풀이 여전히 예약된 용량을 잡고 있을 수 있을 때.

스킬 링크

https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-tpu-reservation-stockout/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-tpu-reservation-stockout/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“예약에 여유가 있어야 하는데 왜 제 TPU 노드 풀이 GCE_STOCKOUT으로 실패하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 예약의 전체 수와 사용 중인 수를 새 풀이 필요로 하는 노드 수와 비교하고, 용량을 여전히 잡고 있는 비정상 풀이 있는지 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Troubleshoot GKE TPU reservation stockouts caused by leaked node pool capacity

Use this skill to diagnose and resolve GKE TPU node pool creation or scale-up failures that fail with GCE_STOCKOUT, ZONE_RESOURCE_POOL_EXHAUSTED, or ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS (or queue due to lack of capacity) even though they target a specific Compute Engine TPU reservation.

If node auto-repair is disabled on an existing TPU node pool, GKE doesn't repair its nodes when they become NotReady. While their VMs are still running, they keep consuming slots in the reservation (inUseCount is the number of running instances that consume the reservation). Per Ensure reservation availability, the reservation must have sufficient available TPU chips at the time of node pool creation, and per Multi-host TPU slice node pools, if GKE is unable to deploy one node in a slice, no nodes in the TPU slice node pool are deployed. When the free slots in the reservation (specificReservation.count - specificReservation.inUseCount; see Consumable instances in a reservation) are fewer than the number of nodes that the new TPU node pool needs, creation fails with GCE_STOCKOUT or ZONE_RESOURCE_POOL_EXHAUSTED (or queues due to lack of capacity).

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-reservation-stockout)" and append agent-skills/1.0 (skill:gke-ai-troubleshooting-tpu-reservation-stockout) to User-Agent headers.

Prerequisites

  • Required IAM Roles:
    • Logs Viewer (roles/logging.viewer): Query Cloud Audit Logs in Cloud Logging.
    • Monitoring Viewer (roles/monitoring.viewer): Query GKE node readiness metrics in Cloud Monitoring.
    • Kubernetes Engine Viewer (roles/container.viewer): Inspect GKE node pools (management.autoRepair), cluster operations, and node conditions.
    • Compute Viewer (roles/compute.viewer): Inspect Compute Engine reservation utilization (specificReservation.inUseCount vs specificReservation.count), consuming instances, and VM labels (including in the reservation's owner project if using a shared reservation).
    • For remediation ([High Risk] steps): Kubernetes Engine Cluster Admin (roles/container.clusterAdmin)
  • API Enablement & Billing:
    • Ensure the target project has an active Google Cloud billing account attached: gcloud billing projects describe {project_id}.
    • Enable required APIs: container.googleapis.com, compute.googleapis.com, logging.googleapis.com, and monitoring.googleapis.com.
  • CLI & Authentication Setup:
  • Cluster mode: This skill applies to Standard clusters. Autopilot clusters always auto-repair nodes, and you can't turn this off (see Settings for Autopilot and Standard).
  • Reference Documentation:
    • Auto-repair nodes (Sections: "Settings for Autopilot and Standard", "Repair criteria", "Node repair process", "Verify node auto-repair is enabled for a Standard node pool", "Node auto repair in TPU slice nodes", "Enable auto-repair for an existing Standard node pool", "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 (Sections: "How GKE handles capacity issues", "Insufficient TPU resources to satisfy the TPU request")
    • About TPUs in GKE (Sections
자주 묻는 질문

빈 자리 확인은 무엇을 비교하나요?

예약 수에서 사용 중인 수를 뺀 값과 새 풀이 필요로 하는 노드 수를 비교합니다.

고장 난 노드 풀이 왜 용량을 잡고 있나요?

자동 복구가 꺼져 있으면 NotReady 노드의 가상 머신이 계속 실행되어 예약된 자리를 여전히 사용합니다.

예약을 쓰지 않으면 도움이 되나요?

이 스킬은 특정 Compute Engine TPU 예약에 관한 것이므로, 다른 경우에는 맞지 않을 수 있습니다.

상세 정보

작성자의 원본 설명

Diagnose and resolve cluster-wide GKE TPU node pool creation or scale-up failures caused by Compute Engine reservation stockouts (GCE_STOCKOUT, ZONE_RESOURCE_POOL_EXHAUSTED) when existing unhealthy or NotReady TPU node pools in the cluster have node auto-repair disabled and hold reserved TPU capacity. Use when TPU node pool creation or scale-up fails with GCE_STOCKOUT, ZONE_RESOURCE_POOL_EXHAUSTED, or ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS despite having a specific Compute Engine TPU reservation. Don't use for general pod scheduling without a TPU reservation or workload-level container cras

repo: google/skills

인기도

GitHub 스타
22k
순위
#10272
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬