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

gke-ai-troubleshooting-tpu-dynamic-slices-monitoring

하는 일

이 스킬은 Google Kubernetes Engine의 TPU 슬라이스 리소스를 모니터링하고 관리합니다. TPU 워크로드를 운영하면서 슬라이스 상태를 보고 프로비저닝 문제를 고쳐야 하는 팀을 위한 스킬입니다.

사용하는 경우

  • ✓GKE 클러스터에서 TPU 슬라이스의 수명 주기 상태를 확인하고 싶을 때.
  • ✓TPU 슬라이스가 프로비저닝되지 않아 그 이유를 알아야 할 때.
  • ✓멈춘 finalizer나 슬라이스 컨트롤러를 주의해서 고치거나 꺼야 할 때.

스킬 링크

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

AI에게 요청하는 예시

“GKE의 test-slice TPU 슬라이스가 프로비저닝되지 않는 이유를 확인하고, 무엇을 해야 하는지 알려 주세요.”

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

작동 방식

프로젝트, 클러스터, 슬라이스 세부 정보를 모은 다음, 선택한 시간 범위의 슬라이스 상태와 로그를 확인합니다. 단일 슬라이스 또는 다중 슬라이스 JobSet 매니페스트도 검증할 수 있습니다.

기술 내용 (원본 SKILL.md)

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

GKE TPU Dynamic Slices Monitoring & Management

Monitors the status of TPU Slice custom resources, troubleshoots provisioning failures, validates workload manifests on dynamic slices, and performs cleanups.

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

Prerequisites

  • Cloud Logging enabled for the project.
  • kubectl and gcloud CLIs configured to access the GKE cluster.

Diagnostic Workflow

Step 0: Context Acquisition & Time Window Definition

Gather project, cluster, and slice context using cluster tools or the following parameters:

  • Project ID: {project_id} (e.g., my-gcp-project)
  • Cluster Name: {cluster_name} (e.g., tpu-cluster)
  • Region/Zone: {location} (e.g., us-central1-a)
  • Slice Name: {slice_name} (e.g., test-slice)
  • Issue Time: {timestamp} (Optional; default to the last 30 minutes window [T - 30m] to [T + 30m])

Step 1: Describe the Slice Custom Resource [Low Risk]

When asked to inspect, troubleshoot, or check a slice status, immediately execute kubectl describe slice {slice_name} using available cluster tools to perform the inspection. Parse the resulting Status.Conditions output against the condition table below to diagnose the exact state and provide concrete recommendations.

  • Command:

    kubectl describe slice {slice_name}
    

State & Reason Analysis

Analyze the Status.Conditions (especially Type: Ready and its Reason and Status):

Lifecycle State / Reason Meaning Recommended Action
SliceNotCreated GKE Slice Controller is initializing the slice and performing resource checks. Wait a few minutes and re-check slice status.
SliceCreationFailed Prerequisites validation failed (e.g., selected nodes don't exist, nodes are already used by another slice, or the topology doesn't match the number of partitions). Verify selected nodes exist, are unallocated, and topology matches partition count.
ACTIVATING GKE is actively forming and provisioning the TPU slice. Monitor node provisioning.
ACTIVE The TPU slice is successfully formed and ready to host workloads. Proceed to deploy or check workloads.
ACTIVE_DEGRADED The slice is usable, but one or more sub-blocks are degraded. Monitor workload logs for interconnect or device errors. Check faulty node VMs.
FAILED GKE failed to form the TPU slice (e.g., selected nodes are not part of the same reservation block). Ensure all selected nodes belong to the same reservation block.
DEACTIVATING The slice is dismantling (triggered by user deletion or a critical systemic failure). Wait for dismantling to finish, or patch finalizers if stuck.
INCOMPLETE The terminal phase before the Slice CR is deleted from the cluster. No action required; the resource will be removed shortly.

Provisioning Failure Troubleshooting Checklist

When investigating slice creation or provisioning failures (SliceCreationFailed or FAILED), perform the following verification steps:

  1. Node Existence & Allocation Check: Verify that the selected TPU nodes exist in the cluster and are not already allocated to another slice (kubectl get nodes -l cloud.google.com/gke-tpu-slice, kubectl get slice -A).
  2. Topology Alignment: Confirm that the partition count matches the requested topology dimensions (e.g. topology 2x2 requires 4 nodes).
  3. Reservation Block Alignment Check: Confirm that all selected TPU nodes belong to the same reservation and reservation block.

Step 2: Verify Workload Specification [Low Risk]

Ensure workload manifests are configured correctly to target the dynamic slice.

1. Single-Slice Workload Requirements

Check that the Pod template contains the following annotations an

자주 묻는 질문

어떤 시간 범위를 확인하나요?

다른 범위를 지정하지 않으면 기본적으로 문제 발생 시각 전후 30분을 확인합니다.

TPU가 아닌 노드 풀도 다루나요?

아닙니다. 일반 노드 풀 생성이 아니라 TPU Dynamic Slices를 위한 것입니다.

finalizer 패치는 안전한가요?

멈춘 finalizer를 위한 신중한 절차가 포함되어 있으며, 각 단계의 영향을 경고합니다.

상세 정보

작성자의 원본 설명

Monitors, troubleshoots, and manages GKE TPU Dynamic Slices custom resources. Use when checking TPU slice lifecycle states, troubleshooting slice provisioning failures, validating single-slice or multi-slice (JobSet) workload manifests, or safely patching stuck finalizers and disabling the slice controller. Don't use for generic GKE cluster node pool creation or standard non-TPU workload management (use gke-basics or gke-cluster-creation instead).

repo: google/skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬