Skip to content
Development
Skill

/gke-ai-troubleshooting-handle-disruption-gpu-tpu

Diagnoses, predicts, and mitigates node disruptions during Compute Engine host maintenance and hardware or software maintenance events for GPU and TPU workloads on GKE. Use when diagnosing node disruptions, predicting host maintenance events on GPU/TPU nodepools, inspecting node

From plugin
skills
22k178 skills1 MCP

Claude Code

$ npx -y skills add google/skills --skill gke-ai-troubleshooting-handle-disruption-gpu-tpu --agent claude-code

SKILL.md

gke-ai-troubleshooting-handle-disruption-gpu-tpu.SKILL.md
name: gke-ai-troubleshooting-handle-disruption-gpu-tpu
metadata:
  version: "1.0.1"
  category: CloudObservabilityAndMonitoring
description: >-
  Diagnoses, predicts, and mitigates node disruptions during Compute Engine host maintenance and hardware or software maintenance events for GPU and TPU workloads on GKE. Use when diagnosing node disruptions, predicting host maintenance events on GPU/TPU nodepools, inspecting node interruption PromQL metrics, auditing node taints, or configuring workload protection strategies (graceful termination, opportunistic maintenance, PodDisruptionBudgets). Don't use for general GKE cluster creation, network policy configuration, or non-disruption workload deployment.

Handle Disruption on GPUs and TPUs Troubleshooting

Attribution

**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you MUST read [Usage Attribution](references/attribution.md). 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-handle-disruption-gpu-tpu)"` and append `agent-skills/1.0 (skill:gke-ai-troubleshooting-handle-disruption-gpu-tpu)` to `User-Agent` headers.

๐Ÿ” Diagnostic Workflow

Step 0: Context Acquisition

  • **Mandatory**: When a user asks to debug or investigate an actual workload

disruption, node crash, or unexpected restart without providing complete cluster details, you MUST immediately halt and request all missing mandatory parameters (`project_id`, `location`, `cluster_name`, `timestamp`) BEFORE delivering theories or general diagnostic commands. Only skip context acquisition if the user explicitly requests a generic reusable runbook or provides a complete static telemetry/log dump for offline analysis.

  • **Optional**: `node_name`, `workload_name`, `workload_namespace`,

`nodepool_name`.

Step 1: [Low Risk] Check for Upcoming Scheduled Maintenance

  • **Action**: Propose running `kubectl` to check if nodes have the scheduled

maintenance label indicating an upcoming disruption.

  • **Example Command**:
    kubectl get nodes -l cloud.google.com/scheduled-maintenance-time -L cloud.google.com/scheduled-maintenance-time
  • **Interpretation**: The `SCHEDULED-MAINTENANCE-TIME` column shows the Unix

epoch time when the VM is scheduled for maintenance. If this label exists, a disruption is guaranteed to occur.

Step 2: [Low Risk] Investigation via Cloud Monitoring (PromQL)

  • **Action**: Call any available monitoring tool or provide PromQL for manual

verification.

  • **Mandatory Monitoring Rule**: Whenever recommending follow-up monitoring or

interruption tracking over time, you MUST explicitly present a **PromQL** query using the metric `kubernetes_io:node_interruption_count` filtered by `interruption_reason="HW/SW Maintenance"`. Do not suggest general Cloud Monitoring dashboards or Metrics Explorer without providing this specific PromQL metric expression.

  • **Example Query**:
    # Fetch host maintenance events for nodes
    sum by (interruption_type,interruption_reason)( sum_over_time( kubernetes_io:node_interruption_count{monitored_resource="k8s_node", interruption_reason="HW/SW Maintenance"}[${__interval}]))
    # See the interruption count aggregated by node pool
    sum by (node_pool_name,interruption_type,interruption_reason)( sum_over_time( kubernetes_io:node_pool_interruption_count{monitored_resource="k8s_node_pool", interruption_reason="HW/SW Maintenance", node_pool_name="{nodepool_name}" }[${__interval}]))
  • **Interpretation**: If `kubernetes_io:node_interruption_count` shows

values > 0 for `interruption_reason="HW/SW Maintenance"`, it indicates the underlying Compute Engine VM was interrupted due to scheduled host maintenance.

Step 3: [Low Risk] Investigation via Cloud Logging & Node Taints

  • **Action**: Call `query_logs` or instruct the user to filter their GKE logs

for active host maintenance events, and check node taints.

  • **Guidance**: Look for occurrences in Cloud Logging where

`cloud.google.com/active-node-maintenance` is set to `ONGOING`. To check if GKE has cordoned the terminating node to prevent new workloads from being scheduled, verify whether the `cloud.google.com/impending-node-termination:NoSchedule` taint is present (either in GKE event logs or directly via `kubectl describe node`).

  • **Interpretation**:
  • `cloud.google.com/active-node-maintenance` set to `ONGOING` means

workloads are actively being stopped by GKE due to host maintenance.

  • `cloud.google.com/impending-node-termination:NoSchedule` taint means GKE

has cordoned the node to prevent new Pods from being scheduled on the terminating node. DO NOT recommend tolerating this taint.

Step 4: Conclusion and Resolution

  • **Action**: Provide a summary of findings to the user and suggest

appropriate mitigation strategies if host maintenance events were confirmed or scheduled.

  • **Reporting Rule**: Signal Only. Report high-signal information indicating

that the disruption was caused by Compute Engine host maintenance, specifically affecting the underlying GPU/TPU nodes. DO NOT dump raw logs.

  • **Negative Findings Rule-Out**: If node scheduled-maintenance labels, PromQL

interruption counts, and active maintenance logs all return negative/empty results, definitively conclude that Compute Engine host maintenance did NOT cause the disruption. Direct the user to investigate application-level causes (such as OOMKill events, CUDA runtime errors, or resource limits) and do not propose host maintenance mitigations as the primary resolution.

  • **Mandatory Workload Protection Triad**: Whenever host maintenance is

identified or antic

Read more
@google
Ships withskills

This repository contains Agent Skills for Google products and technologies, including Google Cloud.

22k178 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
21.7k
Star history of google/skills on GitHub, a chart by star-history.com

Other skills on skills.

finding-google-skills

finding-google-skills

Google platform decision and setup guidance, loaded on demand from Google's skill catalog. Use when a developer is choosing orโ€ฆ

@google@googleInstall Skill
gcloud

gcloud

Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP)โ€ฆ

@google@googleInstall Skill
google-cloud-recipe-auth

google-cloud-recipe-auโ€ฆ

Provides expert guidance on Identity and Access Management (IAM) and authenticating and authorizing to Google Cloud services andโ€ฆ

@google@googleInstall Skill
google-cloud-recipe-onboarding

google-cloud-recipe-onโ€ฆ

Guides a developer's first steps on Google Cloud, covering account creation, billing setup, project management, and deploying aโ€ฆ

@google@googleInstall Skill
retrieving-developer-knowledge

retrieving-developer-kโ€ฆ

Searches, retrieves, and synthesizes official Google developer documentation across Google Cloud, AI/Gemini, Android, Chrome,โ€ฆ

@google@googleInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, orโ€ฆ

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android โ€” semantic ARIA roles and labels,โ€ฆ

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commitsโ€ฆ

react5d252k
@facebook@facebookInstall Skill

Questions about gke-ai-troubleshooting-handle-disruption-gpu-tpu.

Which coding agents can use gke-ai-troubleshooting-handle-disruption-gpu-tpu?
gke-ai-troubleshooting-handle-disruption-gpu-tpu installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.