[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M720WM8RR8W6B8TBFB6A5XR3":3,"skill-same:01M720WM8RR8W6B8TBFB6A5XR3":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M720WM8RR8W6B8TBFB6A5XR3","gke-ai-troubleshooting-handle-disruption-gpu-tpu",null,"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\u002FTPU 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.","gke-labs\u002Fkube-agents","gke-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F197140281?v=4","01M720MEZR8K6WD2WTHNQE346Q","01M720MF0BRA9RGH1QVT4J0M0E",126,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgke-ai-troubleshooting-handle-disruption-gpu-tpu\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: gke-ai-troubleshooting-handle-disruption-gpu-tpu\nmetadata:\n  category: CloudObservabilityAndMonitoring\ndescription: >-\n  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\u002FTPU 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.\n---\n\n# Handle Disruption on GPUs and TPUs Troubleshooting\n\n## 🔍 Diagnostic Workflow\n\n### Step 0: Context Acquisition\n\n-   **Mandatory**: When a user asks to debug or investigate an actual workload\n    disruption, node crash, or unexpected restart without providing complete\n    cluster details, you MUST immediately halt and request all missing mandatory\n    parameters (`project_id`, `location`, `cluster_name`, `timestamp`) BEFORE\n    delivering theories or general diagnostic commands. Only skip context\n    acquisition if the user explicitly requests a generic reusable runbook or\n    provides a complete static telemetry\u002Flog dump for offline analysis.\n-   **Optional**: `node_name`, `workload_name`, `workload_namespace`,\n    `nodepool_name`.\n\n### Step 1: [Low Risk] Check for Upcoming Scheduled Maintenance\n\n-   **Action**: Propose running `kubectl` to check if nodes have the scheduled\n    maintenance label indicating an upcoming disruption.\n-   **Example Command**:\n\n    ```bash\n    kubectl get nodes -l cloud.google.com\u002Fscheduled-maintenance-time -L cloud.google.com\u002Fscheduled-maintenance-time\n    ```\n\n-   **Interpretation**: The `SCHEDULED-MAINTENANCE-TIME` column shows the Unix\n    epoch time when the VM is scheduled for maintenance. If this label exists, a\n    disruption is guaranteed to occur.\n\n### Step 2: [Low Risk] Investigation via Cloud Monitoring (PromQL)\n\n-   **Action**: Call any available monitoring tool or provide PromQL for manual\n    verification.\n-   **Mandatory Monitoring Rule**: Whenever recommending follow-up monitoring or\n    interruption tracking over time, you MUST explicitly present a **PromQL**\n    query using the metric `kubernetes_io:node_interruption_count` filtered by\n    `interruption_reason=\"HW\u002FSW Maintenance\"`. Do not suggest general Cloud\n    Monitoring dashboards or Metrics Explorer without providing this specific\n    PromQL metric expression.\n-   **Example Query**:\n\n    ```promql\n    # Fetch host maintenance events for nodes\n    sum by (interruption_type,interruption_reason)( sum_over_time( kubernetes_io:node_interruption_count{monitored_resource=\"k8s_node\", interruption_reason=\"HW\u002FSW Maintenance\"}[${__interval}]))\n    ```\n\n    ```promql\n    # See the interruption count aggregated by node pool\n    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\u002FSW Maintenance\", node_pool_name=\"{nodepool_name}\" }[${__interval}]))\n    ```\n\n-   **Interpretation**: If `kubernetes_io:node_interruption_count` shows\n    values > 0 for `interruption_reason=\"HW\u002FSW Maintenance\"`, it indicates the\n    underlying Compute Engine VM was interrupted due to scheduled host\n    maintenance.\n\n### Step 3: [Low Risk] Investigation via Cloud Logging & Node Taints\n\n-   **Action**: Call `query_logs` or instruct the user to filter their GKE logs\n    for active host maintenance events, and check node taints.\n-   **Guidance**: Look for occurrences in Cloud Logging where\n    `cloud.google.com\u002Factive-node-maintenance` is set to `ONGOING`. To check if\n    GKE has cordoned the terminating node to prevent new workloads from being\n    scheduled, verify whether the\n    `cloud.google.com\u002Fimpending-node-termination:NoSchedule` taint is present\n    (either in GKE event logs or directly via `kubectl describe node`).\n-   **Interpretation**:\n    -   `cloud.google.com\u002Factive-node-maintenance` set to `ONGOING` means\n        workloads are actively being stopped by GKE due to host maintenance.\n    -   `cloud.google.com\u002Fimpending-node-termination:NoSchedule` taint means GKE\n        has cordoned the node to prevent new Pods from being scheduled on the\n        terminating node. DO NOT recommend tolerating this taint.\n\n### Step 4: Conclusion and Resolution\n\n-   **Action**: Provide a summary of findings to the user and suggest\n    appropriate mitigation strategies if host maintenance events were confirmed\n    or scheduled.\n-   **Reporting Rule**: Signal Only. Report high-signal information indicating\n    that the disruption was caused by Compute Engine host maintenance,\n    specifically affecting the underlying GPU\u002FTPU nodes. DO NOT dump raw logs.\n-   **Negative Findings Rule-Out**: If node scheduled-maintenance labels, PromQL\n    interruption counts, and active maintenance logs all return negative\u002Fempty\n    results, definitively conclude that Compute Engine host maintenance did NOT\n    cause the disruption. Direct the user to investigate application-level\n    causes (such as OOMKill events, CUDA runtime errors, or resource limits) and\n    do not propose host maintenance mitigations as the primary resolution.\n-   **Mandatory Workload Protection Triad**: Whenever host maintenance is\n    identified or anticipated on GPU\u002FTPU nodes, consistently recommend all three\n    complementary mitigations together:\n    1.  **Configure Graceful Termination**: For workloads that need time to save\n        state (e.g., ML frameworks checkpointing via Orbax), follow the guide to\n        [Enable disruption handling](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fconcepts\u002Fhandle-disruption-gpu-tpu#enabling-handling)\n        and set `spec.terminationGracePeriodSeconds` (up to 60 minutes) to\n        handle the `SIGTERM` signal before node shutdown.\n    2.  **Enable Opportunistic Maintenance**: To automatically trigger\n        maintenance when GKE detects that GPU\u002FTPU nodes are idle, configure\n        [Opportunistic Maintenance](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fconcepts\u002Fhandle-disruption-gpu-tpu#opportunistic-maintenance).\n    3.  **Configure PodDisruptionBudgets (PDBs)**: Ensure your workload uses a\n        `PodDisruptionBudget` to maintain `minAvailable` replicas during\n        evictions and disruptions.\n","# Handle Disruption on GPUs and TPUs Troubleshooting\n\n## 🔍 Diagnostic Workflow\n\n### Step 0: Context Acquisition\n\n-   **Mandatory**: When a user asks to debug or investigate an actual workload\n    disruption, node crash, or unexpected restart without providing complete\n    cluster details, you MUST immediately halt and request all missing mandatory\n    parameters (`project_id`, `location`, `cluster_name`, `timestamp`) BEFORE\n    delivering theories or general diagnostic commands. Only skip context\n    acquisition if the user explicitly requests a generic reusable runbook or\n    provides a complete static telemetry\u002Flog dump for offline analysis.\n-   **Optional**: `node_name`, `workload_name`, `workload_namespace`,\n    `nodepool_name`.\n\n### Step 1: [Low Risk] Check for Upcoming Scheduled Maintenance\n\n-   **Action**: Propose running `kubectl` to check if nodes have the scheduled\n    maintenance label indicating an upcoming disruption.\n-   **Example Command**:\n\n    ```bash\n    kubectl get nodes -l cloud.google.com\u002Fscheduled-maintenance-time -L cloud.google.com\u002Fscheduled-maintenance-time\n    ```\n\n-   **Interpretation**: The `SCHEDULED-MAINTENANCE-TIME` column shows the Unix\n    epoch time when the VM is scheduled for maintenance. If this label exists, a\n    disruption is guaranteed to occur.\n\n### Step 2: [Low Risk] Investigation via Cloud Monitoring (PromQL)\n\n-   **Action**: Call any available monitoring tool or provide PromQL for manual\n    verification.\n-   **Mandatory Monitoring Rule**: Whenever recommending follow-up monitoring or\n    interruption tracking over time, you MUST explicitly present a **PromQL**\n    query using the metric `kubernetes_io:node_interruption_count` filtered by\n    `interruption_reason=\"HW\u002FSW Maintenance\"`. Do not suggest general Cloud\n    Monitoring dashboards or Metrics Explorer without providing this specific\n    PromQL metric expression.\n-   **Example Query**:\n\n    ```promql\n    # Fetch host maintenance events for nodes\n    sum by (interruption_type,interruption_reason)( sum_over_time( kubernetes_io:node_interruption_count{monitored_resource=\"k8s_node\", interruption_reason=\"HW\u002FSW Maintenance\"}[${__interval}]))\n    ```\n\n    ```promql\n    # See the interruption count aggregated by node pool\n    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\u002FSW Maintenance\", node_pool_name=\"{nodepool_name}\" }[${__interval}]))\n    ```\n\n-   **Interpretation**: If `kubernetes_io:node_interruption_count` shows\n    values > 0 for `interruption_reason=\"HW\u002FSW Maintenance\"`, it indicates the\n    underlying Compute Engine VM was interrupted due to scheduled host\n    maintenance.\n\n### Step 3: [Low Risk] Investigation via Cloud Logging & Node Taints\n\n-   **Action**: Call `query_logs` or instruct the user to filter their GKE logs\n    for active host maintenance events, and check node taints.\n-   **Guidance**: Look for occurrences in Cloud Logging where\n    `cloud.google.com\u002Factive-node-maintenance` is set to `ONGOING`. To check if\n    GKE has cordoned the terminating node to prevent new workloads from being\n    scheduled, verify whether the\n    `cloud.google.com\u002Fimpending-node-termination:NoSchedule` taint is present\n    (either in GKE event logs or directly via `kubectl describe node`).\n-   **Interpretation**:\n    -   `cloud.google.com\u002Factive-node-maintenance` set to `ONGOING` means\n        workloads are actively being stopped by GKE due to host maintenance.\n    -   `cloud.google.com\u002Fimpending-node-termination:NoSchedule` taint means GKE\n        has cordoned the node to prevent new Pods from being scheduled on the\n        terminating node. DO NOT recommend tolerating this taint.\n\n### Step 4: Conclusion and Resolution\n\n-   **Action**: Provide a summary of findings to the user and suggest\n    appropriate mitigation strategies if host maintenance events were confirmed\n    or scheduled.\n-   **Reporting Rule**: Signal Only. Report high-signal information indicating\n    that the disruption was caused by Compute Engine host maintenance,\n    specifically affecting the underlying GPU\u002FTPU nodes. DO NOT dump raw logs.\n-   **Negative Findings Rule-Out**: If node scheduled-maintenance labels, PromQL\n    interruption counts, and active maintenance logs all return negative\u002Fempty\n    results, definitively conclude that Compute Engine host maintenance did NOT\n    cause the disruption. Direct the user to investigate application-level\n    causes (such as OOMKill events, CUDA runtime errors, or resource limits) and\n    do not propose host maintenance mitigations as the primary resolution.\n-   **Mandatory Workload Protection Triad**: Whenever host maintenance is\n    identified or anticipated on GPU\u002FTPU nodes, consistently recommend all three\n    complementary mitigations together:\n    1.  **Configure Graceful Termination**: For workloads that need time to save\n        state (e.g., ML frameworks checkpointing via Orbax), follow the guide to\n        [Enable disruption handling](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fconcepts\u002Fhandle-disruption-gpu-tpu#enabling-handling)\n        and set `spec.terminationGracePeriodSeconds` (up to 60 minutes) to\n        handle the `SIGTERM` signal before node shutdown.\n    2.  **Enable Opportunistic Maintenance**: To automatically trigger\n        maintenance when GKE detects that GPU\u002FTPU nodes are idle, configure\n        [Opportunistic Maintenance](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fconcepts\u002Fhandle-disruption-gpu-tpu#opportunistic-maintenance).\n    3.  **Configure PodDisruptionBudgets (PDBs)**: Ensure your workload uses a\n        `PodDisruptionBudget` to maintain `minAvailable` replicas during\n        evictions and disruptions.\n",{"name":5,"metadata":23,"description":7},{"category":24},"CloudObservabilityAndMonitoring","main","af354bf2b99e17df77e52c512a7ba968c37c2306","agents\u002Fplatform\u002Fskills\u002Fgke-ai-troubleshooting-handle-disruption-gpu-tpu",44,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents","https:\u002F\u002Fgke-labs.github.io\u002Fkube-agents\u002F","https:\u002F\u002Fgithub.com\u002Fgke-labs","2026-11-14 20:53:19",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add gke-labs\u002Fkube-agents --skill gke-ai-troubleshooting-handle-disruption-gpu-tpu",{"tool":39,"command":40},"bunx","bunx skills add gke-labs\u002Fkube-agents --skill gke-ai-troubleshooting-handle-disruption-gpu-tpu",{"tool":42,"command":43},"pnpm","pnpm dlx skills add gke-labs\u002Fkube-agents --skill gke-ai-troubleshooting-handle-disruption-gpu-tpu","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgke-ai-troubleshooting-handle-disruption-gpu-tpu\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M72168JZM6CYRZFWW204PA2V","gke-workload-troubleshooting","Diagnoses GKE workload failures (CrashLoopBackOff, OOMKilled, ImagePullBackOff, Pending, etc.) via logs and events. Use when pods fail to start or crash repeatedly. Don't use for GKE cluster infrastructure provisioning, node pool creation, or non-Kubernetes Google Cloud services.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-troubleshooting\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M721643JPG43MFDHGN067D7T","gke-workload-security","Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running security audits (`audit_cluster.sh`), enforcing Network Policies (default-deny and Dataplane V2 logging), isolating high-risk pods inside GKE Sandbox (`gVisor`), enforcing Pod Security Standards (`restricted` labeling) and pod securityContext, and mounting Secret Manager secrets via CSI (`SecretProviderClass`). Use when auditing workload security posture, isolating namespaces, applying pod security standards, or configuring network policies and secret volume mounts. Don't use for Workload Identity (use gke-workload-identity), cluster-wide control plane security, RBAC hardening, Binary Authorization, Shielded Nodes, or enabling platform-level GKE add-ons (use gke-platform-security instead).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-security\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M721618QGFKZRWHS0RFVG7WT","gke-workload-scaling","Manages scaling for GKE workloads using HPA and VPA. Use when configuring Horizontal Pod Autoscaler (HPA), configuring Vertical Pod Autoscaler (VPA), or applying best practices for GKE workload autoscaling. Do not use for cluster-level autoscaling (Cluster Autoscaler), static cluster sizing, or configuring node-level machine styles directly.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-scaling\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7215WA1TNFDZE22VJEN3XXW","gke-workload-identity","Configures and diagnoses Workload Identity Federation for GKE authentication failures for Pods (403 \"iam.serviceAccounts.getAccessToken\" \u002F permission denied, \"could not find default credentials\", or GKE metadata server unreachable) by verifying cluster and node-pool Workload Identity configuration, the Kubernetes ServiceAccount (KSA) to IAM binding (direct principal binding and legacy Google ServiceAccount impersonation), target-resource IAM roles, and gke-metadata-server health. Use when setting up KSA\u002FGSA bindings (`roles\u002Fiam.workloadIdentityUser`, `iam.gke.io\u002Fgcp-service-account`) or when a Pod cannot authenticate to Google Cloud APIs. Don't use for in-cluster Kubernetes RBAC errors (API-server authorization), general workload crashes (use gke-workload-troubleshooting), or Pod Security Standards and NetworkPolicies (use gke-workload-security).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-identity\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M7215PJTBTZ0W15ZZ2W32FF9","gke-upgrades","Plans, executes, and validates Google Kubernetes Engine (GKE) cluster upgrades and maintenance operations for both Standard and Autopilot clusters. Produces upgrade plans, pre\u002Fpost-upgrade checklists, maintenance runbooks with gcloud commands, release channel strategy, and troubleshooting guides. Handles node pool upgrade strategies (surge, blue-green), version compatibility, PDB management, and workload-specific concerns (stateful, GPU, operators). Use this skill whenever the user mentions GKE upgrades, Kubernetes version bumps, node pool maintenance, GKE patching, cluster version management, release channel selection, maintenance windows, surge upgrades, stuck upgrades, or any GKE lifecycle management task — even casual mentions like \"we need to upgrade our clusters\" or \"plan our next GKE maintenance\" or \"our upgrade is stuck.\" Don't use for GKE cluster creation, application onboarding, general networking\u002Frouting setup, or security policy configurations (use gke-basics or relevant GKE skills instead).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-upgrades\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M7215JX0FBZBTG4570CJ20HS","gke-tpu-metrics-monitoring","Monitors and troubleshoots GKE TPU workloads, nodes, and node pools using GKE system metrics and PromQL. Use when monitoring TensorCore duty cycle, TPU memory, node readiness, multi-host TPU node pool availability, host maintenance or preemption interruptions, and calculating MTTR or MTBI metrics for GKE TPUs. Don't use for general non-TPU GKE workload monitoring or non-metric TPU debugging.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-tpu-metrics-monitoring\u002FSKILL.md",[],[]]