[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M720WS2W5FACQDDQPXVPY14Z":3,"skill-same:01M720WS2W5FACQDDQPXVPY14Z":59},{"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},"01M720WS2W5FACQDDQPXVPY14Z","gke-ai-troubleshooting-jobset-interruption",null,"Diagnoses GKE JobSet interruptions, restarts, and preemptions for AI\u002FML training workloads autonomously. Use when troubleshooting JobSet restart loops, spot VM preemptions, node readiness failures, host VM issues, or coordinator worker crashes. Don't use for general GKE cluster creation, basic workload deployment, or non-JobSet application issues.","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-jobset-interruption\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: gke-ai-troubleshooting-jobset-interruption\nmetadata:\n  category: Containers\ndescription: >-\n  Diagnoses GKE JobSet interruptions, restarts, and preemptions for AI\u002FML training workloads autonomously.\n  Use when troubleshooting JobSet restart loops, spot VM preemptions, node readiness failures, host VM issues, or coordinator worker crashes.\n  Don't use for general GKE cluster creation, basic workload deployment, or non-JobSet application issues.\n---\n\n# GKE JobSet Interruption Troubleshooting\n\nUse this skill to systematically diagnose and resolve JobSet interruptions,\nrestarts, and preemptions on GKE clusters hosting large-scale AI\u002FML workloads.\n\n## ⚠️ Prerequisites & Sandbox Rules\n\n-   JobSet metrics package must be enabled in `kube-state-metrics` for your\n    cluster.\n-   Cloud Logging and Cloud Monitoring enabled for the Google Cloud Project.\n-   **Autonomous & Sandbox Execution Rule**: If API queries, tools, or commands\n    encounter `403 Permission Denied`, authentication errors, or network\n    isolation, **do NOT enter authentication or credential troubleshooting\n    loops**. Populate the query templates with the acquired variables\n    (`{project_id}`, `{cluster_name}`, `{workload_name}`, `{start_time}`,\n    `{end_time}`), inspect any locally staged telemetry or mock data files if\n    available, and complete the diagnostic workflow and resolution\n    recommendations autonomously.\n\n## 🔍 Diagnostic Workflow\n\n### Step 0: Context Acquisition & Time Window Definition\n\nIndependently gather context using tools, workspace files, environment details,\nor user prompt context:\n\n-   **Project ID** (`{project_id}`)\n-   **Cluster Name** (`{cluster_name}`)\n-   **Workload Name (JobSet Name)** (`{workload_name}`)\n-   **Workload Namespace** (`{namespace}`)\n-   **Issue Time** (`{issue_time}`)\n\nIf specific variables are not explicitly provided by the user, inspect cluster\nresources or logs to determine them, or use the `{variable}` placeholders\nprovided.\n\n#### Time Handling Rules\n\n1.  **Autonomous Time Window**: If a relative time (e.g., \"X minutes ago\") or no\n    exact timestamp is provided, calculate the query window based on current\n    time or available log timestamps.\n2.  **Window Calculation**: If a timestamp `{issue_time}` is available (or\n    calculated as `T`), set `{start_time}` = `T - 30m` and `{end_time}` = `T +\n    30m`.\n\n--------------------------------------------------------------------------------\n\n### Step 1: Identify JobSet Restarts and Attempts [Low Risk]\n\nVerify if the JobSet is experiencing restart loops and determine the frequency\nof restarts.\n\n#### Visual Chart \u002F MQL Query - restarts\n\n-   **MQL Query Specification**:\n\n    ```mql\n    fetch prometheus_target\n    | metric 'prometheus.googleapis.com\u002Fkube_jobset_restarts\u002Fgauge'\n    | filter resource.cluster_name == '{cluster_name}' && metric.jobset_name == '{workload_name}'\n    | align next_older(1m)\n    | every 1m\n    | group_by [metric.jobset_name], [val: max(value)]\n    ```\n\n#### PromQL Metric Query - restarts\n\n-   **PromQL Query Specification**:\n\n    ```promql\n    kube_jobset_restarts{jobset_name=\"{workload_name}\", cluster=\"{cluster_name}\"}\n    ```\n\n-   **Diagnostic Logic**: A non-zero or increasing value for restarts indicates\n    that the JobSet is being actively restarted by the controller due to worker\n    failure or interruption.\n\n-   **Automation**: Proceed to Step 2 automatically after reporting findings.\n\n--------------------------------------------------------------------------------\n\n### Step 2: Inspect Nodepool Interruptions [Low Risk]\n\nDetermine if the JobSet restarts were triggered by physical nodepool-level\nevents (such as spot preemptions, maintenance, or host terminations).\n\n#### A. Metrics Query (Nodepool Interruption Counts)\n\n##### Visual Chart \u002F MQL Query - interruptions\n\n-   **MQL Query Specification**:\n\n    ```mql\n    fetch k8s_node_pool\n    | metric 'kubernetes.io\u002Fnode_pool\u002Finterruption_count'\n    | filter cluster_name == '{cluster_name}'\n    | align next_older(10m)\n    | every 10m\n    | group_by [metric.interruption_type, metric.interruption_reason, metadata.system.node_pool_name], [val: sum(value)]\n    ```\n\n##### PromQL Query - interruptions\n\n-   **PromQL Query Specification**:\n\n    ```promql\n    sum by (interruption_type, interruption_reason, node_pool_name, cluster_name) (\n      avg_over_time(kubernetes_io:node_pool_interruption_count{cluster_name=\"{cluster_name}\"}[10m])\n    )\n    ```\n\n#### B. Log Query (Nodepool Life Events)\n\n-   **LQL Log Filter Specification**:\n\n    ```sql\n    resource.type=\"gke_nodepool\"\n    AND resource.labels.cluster_name=\"{cluster_name}\"\n    AND timestamp >= \"{start_time}\"\n    AND timestamp \u003C= \"{end_time}\"\n    ```\n\n-   **Diagnostic Logic**:\n\n    -   **PreemptionEvent**: Spot VMs were preempted, or node was scale-down.\n    -   **MaintenanceEvent**: Node pool updated or Google scheduled maintenance.\n    -   **TerminationEvent**: Serious host failures. Check `interruption_reason`\n        or logs for host issues.\n    -   See [Failure Signatures](references\u002Ffailure_signatures.md) for examples\n        of node termination logs and preemption events.\n\n-   **Automation**: Proceed to Step 3 automatically.\n\n--------------------------------------------------------------------------------\n\n### Step 3: Inspect Nodes and Underlying Host VMs [Low Risk]\n\nCorrelate node readiness failures with physical host VMs to see if a single\nfaulty host repeatedly fails coordinator pods.\n\n#### A. Metrics Query (Node Ready Status Check)\n\n##### Visual Chart \u002F MQL Query - node status\n\n-   **MQL Query Specification**:\n\n    ```mql\n    fetch k8s_node\n    | metric 'kubernetes.io\u002Fnode\u002Fstatus_condition'\n    | filter cluster_name == '{cluster_name}' && metric.condition == 'Ready' && metric.status == 'False'\n    | align next_older(1m)\n    | every 1m\n    | group_by [node_name, metadata.user.gke_nodepool], [val: max(value)]\n    ```\n\n##### PromQL Query - node status\n\n-   **PromQL Query Specification**:\n\n    ```promql\n    sum by (status, condition, node_pool_name) (\n      kubernetes_io:node_status_condition{cluster_name=\"{cluster_name}\", condition=\"Ready\", status=\"False\"}\n    )\n    ```\n\n#### B. Metrics Query (Node-to-Host Metadata Topology Correlation)\n\n-   **MQL Query Specification**:\n\n    ```mql\n    fetch k8s_node\n    | metric 'kubernetes.io\u002Fnode\u002Fcpu\u002Ftotal_cores'\n    | filter cluster_name == '{cluster_name}'\n    | align next_older(1m)\n    | every 1m\n    | group_by [node_name, metadata.user.gce_topology_host, metadata.user.gke_nodepool], [val: max(value)]\n    ```\n\n#### C. Log Query (Node Fault Logs)\n\n-   **LQL Log Filter Specification**:\n\n    ```sql\n    resource.type=\"k8s_node\"\n    AND resource.labels.cluster_name=\"{cluster_name}\"\n    AND (textPayload:\"host error\" OR textPayload:\"kernel panic\" OR textPayload:\"hardware failure\" OR textPayload:\"NodeNotReady\")\n    AND timestamp >= \"{start_time}\"\n    AND timestamp \u003C= \"{end_time}\"\n    ```\n\n-   **Diagnostic Logic**: Identify if specific nodes are unhealthy\n    (`Ready=False` or `Unknown`) and correlate them to their GCE physical host\n    ID via `metadata.user.gce_topology_host`. Check if the same host is\n    repeatedly failing.\n\n-   **Automation**: Proceed to Step 4 automatically.\n\n--------------------------------------------------------------------------------\n\n### Step 4: Inspect Pod and Worker \u002F Container Failures [Low Risk]\n\nAnalyze pod status phases and retrieve coordinator worker logs to identify\napplication-level crashes or network deadlocks.\n\n> **Required Execution Order**: You MUST analyze pod status phases (Section A)\n> and unschedulable pod metrics (Section B) to assess overall workload health\n> before inspecting specific worker container logs (Section C).\n\n#### A. Metrics Query (Pod Lifecycle Phases)\n\n##### Visual Chart \u002F MQL Query - pod phase\n\n-   **MQL Query Specification**:\n\n    ```mql\n    fetch k8s_pod\n    | metric 'kubernetes.io\u002Fpod\u002Fstatus\u002Fphase'\n    | filter cluster_name == '{cluster_name}' && pod_name ==~ '{workload_name}.*'\n    | align next_older(10m)\n    | every 10m\n    | group_by [metric.phase], [val: count()]\n    ```\n\n##### PromQL Query - pod phase\n\n-   **PromQL Query Specification**:\n\n    ```promql\n    sum by (phase) (\n      avg_over_time(kube_pod_status_phase{cluster=\"{cluster_name}\", pod=~\"{workload_name}.*\"}[10m])\n    )\n    ```\n\n#### B. Metrics Query (Unschedulable Pod Count)\n\n-   **MQL Query Specification**:\n\n    ```mql\n    fetch k8s_pod\n    | metric 'kubernetes.io\u002Fpod\u002Fstatus\u002Funschedulable'\n    | filter cluster_name == '{cluster_name}' && pod_name ==~ '{workload_name}.*'\n    | align next_older(10m)\n    | every 10m\n    | group_by [pod_name], [val: max(value)]\n    ```\n\n#### C. Log Query (Worker Container Logs)\n\n-   **LQL Log Filter Specification**:\n\n    ```sql\n    resource.type=\"k8s_container\"\n    AND resource.labels.cluster_name=\"{cluster_name}\"\n    AND labels.\"k8s-pod\u002Fjobset_sigs_k8s_io\u002Fjobset-name\"=\"{workload_name}\"\n    AND timestamp >= \"{start_time}\"\n    AND timestamp \u003C= \"{end_time}\"\n    ```\n\n-   **Diagnostic Logic**:\n\n    1.  Check the pod timeline to spot pending or unschedulable pods.\n    2.  Use worker container logs to analyze worker 0 in slice 0 (coordinator)\n        for NCCL timeouts, collective communication issues, or MegaScale hangs.\n\n-   **Automation**: Proceed to Resolution.\n\n--------------------------------------------------------------------------------\n\n## 🛠️ Resolution Workflow\n\n### Resolution 1: Preemption & Autoscaling Optimizations [Low Risk]\n\nIf Step 2 showed high preemption counts on Spot VMs:\n\n-   **Action**: Suggest switching critical long-running training workloads to\n    **GKE Reserved\u002FOn-Demand VMs** or utilizing **Compact Placement Policies**\n    to minimize defragmentation interruptions.\n-   **Justification**: Eliminates spot-market preemptions and reduces training\n    restarts.\n\n### Resolution 2: Quarantine Faulty Host VMs [High Risk]\n\nIf Step 3 identified a specific host ID (`gce-topology-host`) that consistently\nfails or triggers restarts across multiple attempts:\n\n-   **Action**: Recommend cordoning\u002Fdraining the GKE node, deleting the\n    underlying GCE VM instance to trigger instance recreation, and opening a\n    support ticket with Google Cloud Support specifying the physical host ID.\n-   **Justification**: GKE auto-repair will recreate the VM instance on healthy\n    physical hardware, preventing infinite restart loops.\n\n--------------------------------------------------------------------------------\n\n## 📋 Copypaste Checklist\n\n-   [ ] Gather context and compute `{start_time}` (`{issue_time} - 30m`) and\n    `{end_time}` (`{issue_time} + 30m`) window.\n-   [ ] Query JobSet restart attempts.\n-   [ ] Check Nodepool interruptions (spot preemptions vs. hardware\n    terminations).\n-   [ ] Query node-to-host mapping and check node logs for physical host errors.\n-   [ ] Inspect pod timeline status and coordinator worker container logs.\n-   [ ] Recommend appropriate scheduling strategy (On-demand vs Spot) or host VM\n    quarantining.\n","# GKE JobSet Interruption Troubleshooting\n\nUse this skill to systematically diagnose and resolve JobSet interruptions,\nrestarts, and preemptions on GKE clusters hosting large-scale AI\u002FML workloads.\n\n## ⚠️ Prerequisites & Sandbox Rules\n\n-   JobSet metrics package must be enabled in `kube-state-metrics` for your\n    cluster.\n-   Cloud Logging and Cloud Monitoring enabled for the Google Cloud Project.\n-   **Autonomous & Sandbox Execution Rule**: If API queries, tools, or commands\n    encounter `403 Permission Denied`, authentication errors, or network\n    isolation, **do NOT enter authentication or credential troubleshooting\n    loops**. Populate the query templates with the acquired variables\n    (`{project_id}`, `{cluster_name}`, `{workload_name}`, `{start_time}`,\n    `{end_time}`), inspect any locally staged telemetry or mock data files if\n    available, and complete the diagnostic workflow and resolution\n    recommendations autonomously.\n\n## 🔍 Diagnostic Workflow\n\n### Step 0: Context Acquisition & Time Window Definition\n\nIndependently gather context using tools, workspace files, environment details,\nor user prompt context:\n\n-   **Project ID** (`{project_id}`)\n-   **Cluster Name** (`{cluster_name}`)\n-   **Workload Name (JobSet Name)** (`{workload_name}`)\n-   **Workload Namespace** (`{namespace}`)\n-   **Issue Time** (`{issue_time}`)\n\nIf specific variables are not explicitly provided by the user, inspect cluster\nresources or logs to determine them, or use the `{variable}` placeholders\nprovided.\n\n#### Time Handling Rules\n\n1.  **Autonomous Time Window**: If a relative time (e.g., \"X minutes ago\") or no\n    exact timestamp is provided, calculate the query window based on current\n    time or available log timestamps.\n2.  **Window Calculation**: If a timestamp `{issue_time}` is available (or\n    calculated as `T`), set `{start_time}` = `T - 30m` and `{end_time}` = `T +\n    30m`.\n\n--------------------------------------------------------------------------------\n\n### Step 1: Identify JobSet Restarts and Attempts [Low Risk]\n\nVerify if the JobSet is experiencing restart loops and determine the frequency\nof restarts.\n\n#### Visual Chart \u002F MQL Query - restarts\n\n-   **MQL Query Specification**:\n\n    ```mql\n    fetch prometheus_target\n    | metric 'prometheus.googleapis.com\u002Fkube_jobset_restarts\u002Fgauge'\n    | filter resource.cluster_name == '{cluster_name}' && metric.jobset_name == '{workload_name}'\n    | align next_older(1m)\n    | every 1m\n    | group_by [metric.jobset_name], [val: max(value)]\n    ```\n\n#### PromQL Metric Query - restarts\n\n-   **PromQL Query Specification**:\n\n    ```promql\n    kube_jobset_restarts{jobset_name=\"{workload_name}\", cluster=\"{cluster_name}\"}\n    ```\n\n-   **Diagnostic Logic**: A non-zero or increasing value for restarts indicates\n    that the JobSet is being actively restarted by the controller due to worker\n    failure or interruption.\n\n-   **Automation**: Proceed to Step 2 automatically after reporting findings.\n\n--------------------------------------------------------------------------------\n\n### Step 2: Inspect Nodepool Interruptions [Low Risk]\n\nDetermine if the JobSet restarts were triggered by physical nodepool-level\nevents (such as spot preemptions, maintenance, or host terminations).\n\n#### A. Metrics Query (Nodepool Interruption Counts)\n\n##### Visual Chart \u002F MQL Query - interruptions\n\n-   **MQL Query Specification**:\n\n    ```mql\n    fetch k8s_node_pool\n    | metric 'kubernetes.io\u002Fnode_pool\u002Finterruption_count'\n    | filter cluster_name == '{cluster_name}'\n    | align next_older(10m)\n    | every 10m\n    | group_by [metric.interruption_type, metric.interruption_reason, metadata.system.node_pool_name], [val: sum(value)]\n    ```\n\n##### PromQL Query - interruptions\n\n-   **PromQL Query Specification**:\n\n    ```promql\n    sum by (interruption_type, interruption_reason, node_pool_name, cluster_name) (\n      avg_over_time(kubernetes_io:node_pool_interruption_count{cluster_name=\"{cluster_name}\"}[10m])\n    )\n    ```\n\n#### B. Log Query (Nodepool Life Events)\n\n-   **LQL Log Filter Specification**:\n\n    ```sql\n    resource.type=\"gke_nodepool\"\n    AND resource.labels.cluster_name=\"{cluster_name}\"\n    AND timestamp >= \"{start_time}\"\n    AND timestamp \u003C= \"{end_time}\"\n    ```\n\n-   **Diagnostic Logic**:\n\n    -   **PreemptionEvent**: Spot VMs were preempted, or node was scale-down.\n    -   **MaintenanceEvent**: Node pool updated or Google scheduled maintenance.\n    -   **TerminationEvent**: Serious host failures. Check `interruption_reason`\n        or logs for host issues.\n    -   See [Failure Signatures](references\u002Ffailure_signatures.md) for examples\n        of node termination logs and preemption events.\n\n-   **Automation**: Proceed to Step 3 automatically.\n\n--------------------------------------------------------------------------------\n\n### Step 3: Inspect Nodes and Underlying Host VMs [Low Risk]\n\nCorrelate node readiness failures with physical host VMs to see if a single\nfaulty host repeatedly fails coordinator pods.\n\n#### A. Metrics Query (Node Ready Status Check)\n\n##### Visual Chart \u002F MQL Query - node status\n\n-   **MQL Query Specification**:\n\n    ```mql\n    fetch k8s_node\n    | metric 'kubernetes.io\u002Fnode\u002Fstatus_condition'\n    | filter cluster_name == '{cluster_name}' && metric.condition == 'Ready' && metric.status == 'False'\n    | align next_older(1m)\n    | every 1m\n    | group_by [node_name, metadata.user.gke_nodepool], [val: max(value)]\n    ```\n\n##### PromQL Query - node status\n\n-   **PromQL Query Specification**:\n\n    ```promql\n    sum by (status, condition, node_pool_name) (\n      kubernetes_io:node_status_condition{cluster_name=\"{cluster_name}\", condition=\"Ready\", status=\"False\"}\n    )\n    ```\n\n#### B. Metrics Query (Node-to-Host Metadata Topology Correlation)\n\n-   **MQL Query Specification**:\n\n    ```mql\n    fetch k8s_node\n    | metric 'kubernetes.io\u002Fnode\u002Fcpu\u002Ftotal_cores'\n    | filter cluster_name == '{cluster_name}'\n    | align next_older(1m)\n    | every 1m\n    | group_by [node_name, metadata.user.gce_topology_host, metadata.user.gke_nodepool], [val: max(value)]\n    ```\n\n#### C. Log Query (Node Fault Logs)\n\n-   **LQL Log Filter Specification**:\n\n    ```sql\n    resource.type=\"k8s_node\"\n    AND resource.labels.cluster_name=\"{cluster_name}\"\n    AND (textPayload:\"host error\" OR textPayload:\"kernel panic\" OR textPayload:\"hardware failure\" OR textPayload:\"NodeNotReady\")\n    AND timestamp >= \"{start_time}\"\n    AND timestamp \u003C= \"{end_time}\"\n    ```\n\n-   **Diagnostic Logic**: Identify if specific nodes are unhealthy\n    (`Ready=False` or `Unknown`) and correlate them to their GCE physical host\n    ID via `metadata.user.gce_topology_host`. Check if the same host is\n    repeatedly failing.\n\n-   **Automation**: Proceed to Step 4 automatically.\n\n--------------------------------------------------------------------------------\n\n### Step 4: Inspect Pod and Worker \u002F Container Failures [Low Risk]\n\nAnalyze pod status phases and retrieve coordinator worker logs to identify\napplication-level crashes or network deadlocks.\n\n> **Required Execution Order**: You MUST analyze pod status phases (Section A)\n> and unschedulable pod metrics (Section B) to assess overall workload health\n> before inspecting specific worker container logs (Section C).\n\n#### A. Metrics Query (Pod Lifecycle Phases)\n\n##### Visual Chart \u002F MQL Query - pod phase\n\n-   **MQL Query Specification**:\n\n    ```mql\n    fetch k8s_pod\n    | metric 'kubernetes.io\u002Fpod\u002Fstatus\u002Fphase'\n    | filter cluster_name == '{cluster_name}' && pod_name ==~ '{workload_name}.*'\n    | align next_older(10m)\n    | every 10m\n    | group_by [metric.phase], [val: count()]\n    ```\n\n##### PromQL Query - pod phase\n\n-   **PromQL Query Specification**:\n\n    ```promql\n    sum by (phase) (\n      avg_over_time(kube_pod_status_phase{cluster=\"{cluster_name}\", pod=~\"{workload_name}.*\"}[10m])\n    )\n    ```\n\n#### B. Metrics Query (Unschedulable Pod Count)\n\n-   **MQL Query Specification**:\n\n    ```mql\n    fetch k8s_pod\n    | metric 'kubernetes.io\u002Fpod\u002Fstatus\u002Funschedulable'\n    | filter cluster_name == '{cluster_name}' && pod_name ==~ '{workload_name}.*'\n    | align next_older(10m)\n    | every 10m\n    | group_by [pod_name], [val: max(value)]\n    ```\n\n#### C. Log Query (Worker Container Logs)\n\n-   **LQL Log Filter Specification**:\n\n    ```sql\n    resource.type=\"k8s_container\"\n    AND resource.labels.cluster_name=\"{cluster_name}\"\n    AND labels.\"k8s-pod\u002Fjobset_sigs_k8s_io\u002Fjobset-name\"=\"{workload_name}\"\n    AND timestamp >= \"{start_time}\"\n    AND timestamp \u003C= \"{end_time}\"\n    ```\n\n-   **Diagnostic Logic**:\n\n    1.  Check the pod timeline to spot pending or unschedulable pods.\n    2.  Use worker container logs to analyze worker 0 in slice 0 (coordinator)\n        for NCCL timeouts, collective communication issues, or MegaScale hangs.\n\n-   **Automation**: Proceed to Resolution.\n\n--------------------------------------------------------------------------------\n\n## 🛠️ Resolution Workflow\n\n### Resolution 1: Preemption & Autoscaling Optimizations [Low Risk]\n\nIf Step 2 showed high preemption counts on Spot VMs:\n\n-   **Action**: Suggest switching critical long-running training workloads to\n    **GKE Reserved\u002FOn-Demand VMs** or utilizing **Compact Placement Policies**\n    to minimize defragmentation interruptions.\n-   **Justification**: Eliminates spot-market preemptions and reduces training\n    restarts.\n\n### Resolution 2: Quarantine Faulty Host VMs [High Risk]\n\nIf Step 3 identified a specific host ID (`gce-topology-host`) that consistently\nfails or triggers restarts across multiple attempts:\n\n-   **Action**: Recommend cordoning\u002Fdraining the GKE node, deleting the\n    underlying GCE VM instance to trigger instance recreation, and opening a\n    support ticket with Google Cloud Support specifying the physical host ID.\n-   **Justification**: GKE auto-repair will recreate the VM instance on healthy\n    physical hardware, preventing infinite restart loops.\n\n--------------------------------------------------------------------------------\n\n## 📋 Copypaste Checklist\n\n-   [ ] Gather context and compute `{start_time}` (`{issue_time} - 30m`) and\n    `{end_time}` (`{issue_time} + 30m`) window.\n-   [ ] Query JobSet restart attempts.\n-   [ ] Check Nodepool interruptions (spot preemptions vs. hardware\n    terminations).\n-   [ ] Query node-to-host mapping and check node logs for physical host errors.\n-   [ ] Inspect pod timeline status and coordinator worker container logs.\n-   [ ] Recommend appropriate scheduling strategy (On-demand vs Spot) or host VM\n    quarantining.\n",{"name":5,"metadata":23,"description":7},{"category":24},"Containers","main","af354bf2b99e17df77e52c512a7ba968c37c2306","agents\u002Fplatform\u002Fskills\u002Fgke-ai-troubleshooting-jobset-interruption",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-jobset-interruption",{"tool":39,"command":40},"bunx","bunx skills add gke-labs\u002Fkube-agents --skill gke-ai-troubleshooting-jobset-interruption",{"tool":42,"command":43},"pnpm","pnpm dlx skills add gke-labs\u002Fkube-agents --skill gke-ai-troubleshooting-jobset-interruption","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgke-ai-troubleshooting-jobset-interruption\u002FSKILL.md",true,[47,53],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Ffailure_signatures.md","REFERENCE","参考文档",2609,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgke-ai-troubleshooting-jobset-interruption\u002Freferences\u002Ffailure_signatures.md",{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"scripts\u002Fvalidate_queries.sh","SCRIPT","脚本",3728,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgke-ai-troubleshooting-jobset-interruption\u002Fscripts\u002Fvalidate_queries.sh",[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"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":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"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":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"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":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"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":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"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":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"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",[],[]]