Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)22k · #10267

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

Ce qu’il fait

Cette skill supervise et gère les ressources de slices TPU sur Google Kubernetes Engine. Elle s'adresse aux équipes qui exécutent des charges de travail TPU et doivent voir l'état des slices et corriger les problèmes de provisionnement.

Quand l’utiliser

  • ✓Quand vous voulez vérifier le cycle de vie des slices TPU dans un cluster GKE.
  • ✓Quand un slice TPU ne se provisionne pas et que vous devez en trouver la cause.
  • ✓Quand un finalizer bloqué ou le contrôleur de slices doit être corrigé ou désactivé avec précaution.

Lien du skill

https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-tpu-dynamic-slices-monitoring/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-tpu-dynamic-slices-monitoring/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Vérifie pourquoi mon slice TPU test-slice dans GKE ne se provisionne pas, et dis-moi quoi faire.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Elle rassemble les détails du projet, du cluster et du slice, puis vérifie l'état du slice et les journaux sur la fenêtre temporelle que vous choisissez. Elle peut aussi valider les manifestes JobSet à un ou plusieurs slices.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

Questions fréquentes

Quelle fenêtre temporelle vérifie-t-elle ?

Par défaut, les 30 minutes autour de l'heure du problème, sauf si vous donnez une autre fenêtre.

Couvre-t-elle les pools de nœuds non TPU ?

Non. Elle concerne les Dynamic Slices TPU, et non la création générale de pools de nœuds.

Corriger les finalizers est-il sûr ?

Elle comprend une procédure prudente pour les finalizers bloqués et met en garde contre les effets de chaque étape.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
22k
Position au classement
#10267
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires