[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6992TQ9V7XW5BB9F3Q9NNW1":3,"skill-same:01M6992TQ9V7XW5BB9F3Q9NNW1":98},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":17,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6992TQ9V7XW5BB9F3Q9NNW1","gke-ai-troubleshooting-jobset-interruption","GKE JobSet 中断故障排查","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 JobSet 的中断、重启和抢占，面向 AI\u002FML 训练工作负载。当排查 JobSet 重启循环、Spot VM 抢占、节点就绪失败、宿主 VM 问题或协调器工作进程（coordinator worker）崩溃时使用。不用于常规 GKE 集群创建、基础工作负载部署或非 JobSet 应用问题。","google\u002Fskills","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698WR0H76ENHE587T9EJT89",24235,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-jobset-interruption\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"gke ai troubleshooting jobset interruption","gke","troubleshooting","when","containers","for","coordinator","loops","cluster","host","basic","creation","worker","restart","general","node","issues","deployment","training","workload","2026-11-10 10:12:30",false,"---\nname: gke-ai-troubleshooting-jobset-interruption\nmetadata:\n  version: \"1.0.1\"\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## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:gke-ai-troubleshooting-jobset-interruption)\"`\nand append `agent-skills\u002F1.0 (skill:gke-ai-troubleshooting-jobset-interruption)` to `User-Agent` headers.\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## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:gke-ai-troubleshooting-jobset-interruption)\"`\nand append `agent-skills\u002F1.0 (skill:gke-ai-troubleshooting-jobset-interruption)` to `User-Agent` headers.\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":56,"description":7},{"version":57,"category":58},"1.0.1","Containers","main","bb9b3f464aae37af360d079c1d863524955b0363","skills\u002Fcloud\u002Fgke-ai-troubleshooting-jobset-interruption",2014,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 23:31:00",{"source":9,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add google\u002Fskills --skill gke-ai-troubleshooting-jobset-interruption",{"tool":74,"command":75},"bunx","bunx skills add google\u002Fskills --skill gke-ai-troubleshooting-jobset-interruption",{"tool":77,"command":78},"pnpm","pnpm dlx skills add google\u002Fskills --skill gke-ai-troubleshooting-jobset-interruption","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-jobset-interruption\u002FSKILL.md",true,[82,88,92],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fattribution.md","REFERENCE","参考文档",1966,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-jobset-interruption\u002Freferences\u002Fattribution.md",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Ffailure_signatures.md",2609,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-jobset-interruption\u002Freferences\u002Ffailure_signatures.md",{"path":93,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Fvalidate_queries.sh","SCRIPT","脚本",3728,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-jobset-interruption\u002Fscripts\u002Fvalidate_queries.sh",[99,107,114,121,128,135],{"skillNo":100,"name":101,"nameZh":17,"description":102,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":106},"01M7DQ9K7JF4T7NJZ2K1MQZ44Q","cloud-operator-share-context","Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-share-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":108,"name":109,"nameZh":17,"description":110,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":106},"01M7DQ9ERFGGQCFAWQW0KRKYBY","cloud-operator-setup","Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-setup\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":17,"description":117,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":106},"01M7B4RHQCM0DK2XQ7S7ZXVN8D","developer-device-platform-device-run","Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fdeveloper-device-platform-device-run\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":17,"description":124,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":106},"01M7B4R9YXMRW7RZP9Q9FMZJ2P","compute-vm-creation","Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcompute-vm-creation\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":17,"description":131,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":106},"01M7B4QD02N0YBVT0838Z5K5VC","agent-platform-autorater-customization","Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fagent-platform-autorater-customization\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":17,"description":138,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":106},"01M78JP22K73KK96JH0JNDT5C4","iap-agent-platform-troubleshooting","Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with \"Egress request is not authorized\", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002FSKILL.md",[],[]]