finding-google-skills
Locates and loads the right Google product skill on demand from a remote catalog index, instead of preloading every skill. Use at the START of any request…
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
$ npx -y skills add google/skills --skill gke-ai-troubleshooting-handle-disruption-gpu-tpu --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/gke-ai-troubleshooting-handle-disruption-gpu-tpuContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: gke-ai-troubleshooting-handle-disruption-gpu-tpu metadata: 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.
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.
`nodepool_name`.
maintenance label indicating an upcoming disruption.
kubectl get nodes -l cloud.google.com/scheduled-maintenance-time -L cloud.google.com/scheduled-maintenance-time
epoch time when the VM is scheduled for maintenance. If this label exists, a disruption is guaranteed to occur.
verification.
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.
# 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}]))values > 0 for `interruption_reason="HW/SW Maintenance"`, it indicates the underlying Compute Engine VM was interrupted due to scheduled host maintenance.
for active host maintenance events, and check node taints.
`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`).
workloads are actively being stopped by GKE due to host maintenance.
has cordoned the node to prevent new Pods from being scheduled on the terminating node. DO NOT recommend tolerating this taint.
appropriate mitigation strategies if host maintenance events were confirmed or scheduled.
that the disruption was caused by Compute Engine host maintenance, specifically affecting the underlying GPU/TPU nodes. DO NOT dump raw logs.
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.
identified or anticipated on GPU/TPU nodes, consistently recommend all three complementary mitigations together: 1. **Configure Graceful Termination**: For workloads that need time to save state (e.g., ML frameworks checkpointing via Orbax), follow the guide to [Enable disruption handling](https://docs.cloud.google.com/kubernetes-engine/docs/concepts/handle-disruption-gpu-tpu#enabling-handling) and set `spec.terminationGracePeriodSeconds` (up to 60 minutes) to handle the `SIGTERM` signal befor
This repository contains Agent Skills for Google products and technologies, including Google Cloud.
Repo: google/skills
Locates and loads the right Google product skill on demand from a remote catalog index, instead of preloading every skill. Use at the START of any request…
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.…
Provides expert guidance on authenticating and authorizing to Google Cloud services and APIs, covering human users, service identities, Application Default…
Guides a developer's first steps on Google Cloud, covering account creation, billing setup, project management, and deploying a first resource. Use when a new…
Searches, retrieves, and synthesizes official Google developer documentation across Google Cloud, AI/Gemini, Android, Chrome, Web, Flutter, Go, Firebase, and…
Guides developers through managing (adding, removing, and clearing) audience members for Google products using the Data Manager API and its associated client…