[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6992WJD7EMBMR6AAFZS8FTM":3,"skill-same:01M6992WJD7EMBMR6AAFZS8FTM":88},{"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},"01M6992WJD7EMBMR6AAFZS8FTM","gke-ai-troubleshooting-node-unresponsive-timeout","GKE TPU\u002FGPU 节点无响应诊断","Diagnose and mitigate GKE TPU or GPU nodes stuck in NotReady \u002F NodeStatusUnknown (\"Kubelet stopped posting node status\") due to host kernel panics, hardware lockups, or disabled node auto-repair. Use when nodes stop heartbeating beyond the node auto-repair threshold and pods remain stuck in Terminating. Don't use for healthy nodes, pod-only application crashes, or routine GKE upgrades.","诊断并缓解因宿主内核崩溃、硬件锁定或禁用节点自动修复而卡在 NotReady \u002F NodeStatusUnknown（\"Kubelet stopped posting node status\"）状态的 GKE TPU 或 GPU 节点。当节点心跳停止超过节点自动修复阈值且 Pod 仍卡在 Terminating 时使用。不用于健康节点、纯 Pod 应用崩溃或常规 GKE 升级。","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-node-unresponsive-timeout\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 node unresponsive timeout","timeout","gke","troubleshooting","node","auto","when","routine","for","host","posting","repair","stop","only","containers","diagnose","status","tpu","gke upgrades","kernel","2026-11-10 10:12:30",false,"---\nname: gke-ai-troubleshooting-node-unresponsive-timeout\ndescription: >-\n  Diagnose and mitigate GKE TPU or GPU nodes stuck in NotReady \u002F\n  NodeStatusUnknown (\"Kubelet stopped posting node status\") due to host kernel\n  panics, hardware lockups, or disabled node auto-repair. Use when nodes stop\n  heartbeating beyond the node auto-repair threshold and pods remain stuck in\n  Terminating. Don't use for healthy nodes, pod-only application crashes, or\n  routine GKE upgrades.\nmetadata:\n  version: \"1.0.1\"\n  category: Containers\n---\n\n# Troubleshoot unresponsive GKE TPU and GPU nodes (`NodeStatusUnknown`)\n\nWhen the Compute Engine host of a TPU or GPU node has a fatal hardware error,\nkernel panic, or non-maskable interrupt (NMI) lockup, the guest OS stops\nresponding. The kubelet can no longer send heartbeats, so the node `Ready`\ncondition becomes `Unknown` with `Reason: NodeStatusUnknown` (`Kubelet stopped\nposting node status.`). If node auto-repair is disabled on the node pool, GKE\ndoesn't repair the node. The node can stay `NotReady`, and pods on it can stay\nin `Terminating`, which blocks multi-host `JobSet` workloads from recovering.\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-node-unresponsive-timeout)\"`\nand append `agent-skills\u002F1.0 (skill:gke-ai-troubleshooting-node-unresponsive-timeout)` to `User-Agent` headers.\n\n## Prerequisites\n\n- **Tools**: Install the\n  [Google Cloud SDK](https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fdocs\u002Finstall) (`gcloud`) and\n  `kubectl`.\n- **Cloud Billing & Project Configuration**: Verify an active billing account is\n  linked (`gcloud billing projects describe {project_id}`), authenticate\n  (`gcloud auth login`), set the target project (`gcloud config set project\n  {project_id}`), and ensure `container.googleapis.com`,\n  `compute.googleapis.com`, `logging.googleapis.com`, and\n  `monitoring.googleapis.com` are enabled.\n- **Required IAM Roles**:\n  - Kubernetes Engine Viewer (`roles\u002Fcontainer.viewer`)\n  - Compute Viewer (`roles\u002Fcompute.viewer`)\n  - Logs Viewer (`roles\u002Flogging.viewer`)\n  - Monitoring Viewer (`roles\u002Fmonitoring.viewer`)\n  - For remediation (`[High Risk]` steps): Kubernetes Engine Cluster Admin\n    (`roles\u002Fcontainer.clusterAdmin`)\n- **Documentation**:\n  - [Troubleshoot nodes with the NotReady status in GKE](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Fnode-notready.md.txt)\n    (Sections: \"Check the node's status and conditions\", \"Confirm node\n    preemption\", \"Verify that the node has recovered\")\n  - [Deploy TPU workloads in GKE Standard](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Ftpus.md.txt)\n    (Sections: \"Monitor health metrics for TPU nodes and node pools\", \"Configure\n    auto repair for TPU slice nodes\")\n  - [Troubleshoot OOM events](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Foom-events.md.txt)\n  - [View GKE logs](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fview-logs.md.txt)\n    (Sections: \"System logs\")\n  - [Viewing serial port output](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Ftroubleshooting\u002Fviewing-serial-port-output.md.txt)\n  - [Troubleshoot Linux VM boot issues due to kernel panic](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Ftroubleshooting\u002Fkernel-panic.md.txt)\n  - [Auto-repair nodes](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt)\n    (Sections: \"Settings for Autopilot and Standard\", \"Verify node auto-repair\n    is enabled for a Standard node pool\", \"Get information about recent\n    automated repair events\", \"Enable auto-repair for an existing Standard node\n    pool\", \"Repair criteria\", \"Node repair process\", \"Node auto repair in TPU\n    slice nodes\")\n  - [Troubleshooting VM shutdowns and reboots](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Ftroubleshooting\u002Ftroubleshooting-reboots.md.txt)\n    (Sections: \"Querying Cloud Audit Logs\", \"Reviewing Cloud Audit Logs\")\n\n> **Read-only rule**: Run read-only diagnostic commands only. Never drain,\n> delete, or re-create nodes, or run any other command that changes the cluster.\n> Give the user any fix to apply themselves.\n\nWhen you recommend a fix, link the doc section that describes it.\n\n---\n\n## Diagnostic workflow\n\n### Step 0: Collect context and set the investigation window `[Low Risk]`\n\nCollect the target parameters. By default, query a 60-minute window `[T - 30m, T\n+ 30m]` around `{issue_time}`:\n\n- `{project_id}`: Google Cloud project ID\n- `{cluster_name}`: GKE cluster name\n- `{location}`: Cluster region or zone\n- `{nodepool_name}`: Target TPU or GPU node pool name\n- `{node_name}`: Unresponsive GKE node name (and its Compute Engine `{zone}`)\n- `{issue_time}`: Incident timestamp in RFC3339 UTC\n- `{start_time}`: `{issue_time} - 30m`\n- `{end_time}`: `{issue_time} + 30m`\n\n---\n\n### Step 1: Verify the `NodeStatusUnknown` heartbeat timeout `[Low Risk]`\n\n1. **Check Kubernetes node conditions**: To inspect the node status and verify\n   whether the `Ready` condition is `Unknown` with `Reason: NodeStatusUnknown`\n   (`Kubelet stopped posting node status.`), follow the instructions in the\n   section\n   [Check the node's status and conditions](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Fnode-notready.md.txt).\n2. **Query Cloud Logging (read-only LQL)**: Query `k8s_node` and `k8s_cluster`\n   logs across `[{start_time}, {end_time}]` to confirm when the control plane\n   lost heartbeat contact with `{node_name}`:\n\n```\n(resource.type=\"k8s_node\" OR resource.type=\"k8s_cluster\")\nresource.labels.cluster_name=\"{cluster_name}\"\n(\"{node_name}\" AND (\"NodeNotReady\" OR \"NodeStatusUnknown\" OR \"Kubelet stopped posting node status\"))\ntimestamp >= \"{start_time}\" AND timestamp \u003C= \"{end_time}\"\n```\n\n3. **Query Cloud Monitoring (read-only PromQL)**: Correlate the duration of the\n   `Unknown` state using the GKE system metric\n   `kubernetes.io\u002Fnode\u002Fstatus_condition` (`kubernetes_io:node_status_condition`,\n   GKE `1.32.1-gke.1357001+`) documented in\n   [Monitor health metrics for TPU nodes and node pools](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Ftpus.md.txt),\n   filtered by `condition=\"Ready\"` and `status=\"Unknown\"`:\n\n```promql\nkubernetes_io:node_status_condition{\n  monitored_resource=\"k8s_node\",\n  cluster_name=\"{cluster_name}\",\n  node_name=\"{node_name}\",\n  condition=\"Ready\",\n  status=\"Unknown\"\n}\n```\n\n- **Decision logic**:\n  - If the node `Ready` condition is `True` and `NodeStatusUnknown` is absent,\n    **rule out** an unresponsive node timeout and pivot to workload-level\n    troubleshooting (for example,\n    [Troubleshoot OOM events](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Foom-events.md.txt))\n    rather than repairing or draining the node.\n  - If `Ready` is `Unknown` (`NodeStatusUnknown`), proceed to Step 2.\n\n---\n\n### Step 2: Inspect serial port output for a kernel panic `[Low Risk]`\n\nThe guest OS can't send logs after a fatal kernel freeze, so check the serial\nport output of the node's VM:\n\n- **Cloud Logging**: If serial port logging is enabled (i.e. VM metadata\n  `serial-port-logging-enable` is set to `true`), GKE system logs in Cloud\n  Logging include the node's serial port output. See the section\n  [System logs](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fview-logs.md.txt).\n  Use Cloud Logging when the VM is stopped or has already been replaced by\n  auto-repair, or when you need more than the most recent output.\n- **Running VM**: Follow\n  [Viewing serial port output](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Ftroubleshooting\u002Fviewing-serial-port-output.md.txt)\n  to retrieve the serial port 1 output (`gcloud compute instances\n  get-serial-port-output` with `--port=1`) for `{node_name}` in `{zone}`. This\n  method returns only the most recent 1 MB of output per port.\n\nConsult\n[Troubleshoot Linux VM boot issues due to kernel panic](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Ftroubleshooting\u002Fkernel-panic.md.txt)\nto identify documented kernel panic and hardware crash patterns (such as `Fatal\nMachine check`, `hung_task: blocked tasks`, or `NMI: Not continuing`) in the\nserial port output.\n\n---\n\n### Step 3: Check node auto-repair status `[Low Risk]`\n\nFind out why GKE hasn't repaired the unresponsive node:\n\n- **Autopilot clusters**: Autopilot always repairs nodes, and you can't turn\n  this off (see\n  [Settings for Autopilot and Standard](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt)).\n  Skip the configuration check and check the repair history.\n- **Standard clusters**: Follow\n  [Verify node auto-repair is enabled for a Standard node pool](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt)\n  to check whether `autoRepair` is enabled on `{nodepool_name}`.\n- **Repair history (both modes)**: Auto-repair can be enabled and the repair can\n  still fail. Per\n  [Configure auto repair for TPU slice nodes](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Ftpus.md.txt),\n  check the repair status, including the failure reason, in the operation\n  history described in\n  [Get information about recent automated repair events](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt).\n  If the failure is caused by insufficient quota, tell the user to contact their\n  Google Cloud account representative to increase the quota.\n\n---\n\n### Step 4: Check Compute Engine system events `[Low Risk]`\n\nTo list the system events for `{node_name}` around `{issue_time}`, follow the\ninstructions in the section\n[Querying Cloud Audit Logs](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Ftroubleshooting\u002Ftroubleshooting-reboots.md.txt).\nCompare the `method` field with the table in the \"Reviewing Cloud Audit Logs\"\nsection of the same document, and look for:\n\n- `compute.instances.hostError`: a hardware or software issue on the physical\n  host caused the VM to crash.\n- `compute.instances.preempted`: Compute Engine preempted a Spot VM or\n  preemptible VM. For preempted nodes, also see\n  [Confirm node preemption](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Fnode-notready.md.txt).\n- `compute.instances.automaticRestart`: Compute Engine restarted the VM after a\n  `hostError` or `terminateOnHostMaintenance` event.\n- `compute.instances.guestTerminate`: the VM's operating system initiated the\n  shutdown.\n\n---\n\n### Step 5: Resolution `[High Risk]`\n\n> **Guardrails**:\n> - **Never** force-delete stuck `Terminating` pods on an unresponsive node.\n>   Force deletion doesn't wait for the kubelet to confirm that the pod has\n>   stopped, so a replacement pod can start while the old one is still running.\n>   See\n>   [Force Delete StatefulSet Pods](https:\u002F\u002Fkubernetes.io\u002Fdocs\u002Ftasks\u002Frun-application\u002Fforce-delete-stateful-set-pod\u002F#force-deletion).\n> - **Never** delete GKE-managed Compute Engine VM instances directly (`gcloud\n>   compute instances delete`). Instead, check how long the node has reported\n>   `NodeStatusUnknown` (Step 1), check the serial console output (Step 2), and\n>   rely on node auto-repair, as described in the following steps.\n\n1. **Enable node auto-repair (Standard clusters only)**:\n   - Autopilot clusters always auto-repair nodes, so skip this step.\n   - Before the user enables auto-repair on a multi-host TPU slice node pool,\n     tell them that GKE re-creates the entire node pool when a node in it needs\n     repair (see step 2).\n   - If `autoRepair` is disabled on `{nodepool_name}`, link the user to\n     [Enable auto-repair for an existing Standard node pool](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt)\n     and\n     [Configure auto repair for TPU slice nodes](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Ftpus.md.txt)\n     so they can apply the change themselves.\n2. **Let GKE repair the node**:\n   - Explain that GKE repairs a node that reports `NotReady` or no status for\n     the documented time threshold by draining and re-creating it, and link the\n     \"Repair criteria\" and \"Node repair process\" sections of\n     [Auto-repair nodes](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt).\n     GKE waits one hour for the drain to complete. If the drain doesn't\n     complete, GKE shuts the node down and creates a new node. Tell the user to\n     expect this one-hour drain wait before GKE re-creates the node.\n   - For multi-host TPU slice node pools, note per\n     [Node auto repair in TPU slice nodes](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt)\n     that the entire node pool is re-created.\n3. **Verify node recovery**:\n   - After the repair completes, follow the instructions in the section\n     [Verify that the node has recovered](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Fnode-notready.md.txt)\n     to verify that the repaired node returns to `Ready` status, then confirm\n     that the `JobSet` pods are running again.\n","# Troubleshoot unresponsive GKE TPU and GPU nodes (`NodeStatusUnknown`)\n\nWhen the Compute Engine host of a TPU or GPU node has a fatal hardware error,\nkernel panic, or non-maskable interrupt (NMI) lockup, the guest OS stops\nresponding. The kubelet can no longer send heartbeats, so the node `Ready`\ncondition becomes `Unknown` with `Reason: NodeStatusUnknown` (`Kubelet stopped\nposting node status.`). If node auto-repair is disabled on the node pool, GKE\ndoesn't repair the node. The node can stay `NotReady`, and pods on it can stay\nin `Terminating`, which blocks multi-host `JobSet` workloads from recovering.\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-node-unresponsive-timeout)\"`\nand append `agent-skills\u002F1.0 (skill:gke-ai-troubleshooting-node-unresponsive-timeout)` to `User-Agent` headers.\n\n## Prerequisites\n\n- **Tools**: Install the\n  [Google Cloud SDK](https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fdocs\u002Finstall) (`gcloud`) and\n  `kubectl`.\n- **Cloud Billing & Project Configuration**: Verify an active billing account is\n  linked (`gcloud billing projects describe {project_id}`), authenticate\n  (`gcloud auth login`), set the target project (`gcloud config set project\n  {project_id}`), and ensure `container.googleapis.com`,\n  `compute.googleapis.com`, `logging.googleapis.com`, and\n  `monitoring.googleapis.com` are enabled.\n- **Required IAM Roles**:\n  - Kubernetes Engine Viewer (`roles\u002Fcontainer.viewer`)\n  - Compute Viewer (`roles\u002Fcompute.viewer`)\n  - Logs Viewer (`roles\u002Flogging.viewer`)\n  - Monitoring Viewer (`roles\u002Fmonitoring.viewer`)\n  - For remediation (`[High Risk]` steps): Kubernetes Engine Cluster Admin\n    (`roles\u002Fcontainer.clusterAdmin`)\n- **Documentation**:\n  - [Troubleshoot nodes with the NotReady status in GKE](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Fnode-notready.md.txt)\n    (Sections: \"Check the node's status and conditions\", \"Confirm node\n    preemption\", \"Verify that the node has recovered\")\n  - [Deploy TPU workloads in GKE Standard](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Ftpus.md.txt)\n    (Sections: \"Monitor health metrics for TPU nodes and node pools\", \"Configure\n    auto repair for TPU slice nodes\")\n  - [Troubleshoot OOM events](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Foom-events.md.txt)\n  - [View GKE logs](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fview-logs.md.txt)\n    (Sections: \"System logs\")\n  - [Viewing serial port output](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Ftroubleshooting\u002Fviewing-serial-port-output.md.txt)\n  - [Troubleshoot Linux VM boot issues due to kernel panic](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Ftroubleshooting\u002Fkernel-panic.md.txt)\n  - [Auto-repair nodes](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt)\n    (Sections: \"Settings for Autopilot and Standard\", \"Verify node auto-repair\n    is enabled for a Standard node pool\", \"Get information about recent\n    automated repair events\", \"Enable auto-repair for an existing Standard node\n    pool\", \"Repair criteria\", \"Node repair process\", \"Node auto repair in TPU\n    slice nodes\")\n  - [Troubleshooting VM shutdowns and reboots](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Ftroubleshooting\u002Ftroubleshooting-reboots.md.txt)\n    (Sections: \"Querying Cloud Audit Logs\", \"Reviewing Cloud Audit Logs\")\n\n> **Read-only rule**: Run read-only diagnostic commands only. Never drain,\n> delete, or re-create nodes, or run any other command that changes the cluster.\n> Give the user any fix to apply themselves.\n\nWhen you recommend a fix, link the doc section that describes it.\n\n---\n\n## Diagnostic workflow\n\n### Step 0: Collect context and set the investigation window `[Low Risk]`\n\nCollect the target parameters. By default, query a 60-minute window `[T - 30m, T\n+ 30m]` around `{issue_time}`:\n\n- `{project_id}`: Google Cloud project ID\n- `{cluster_name}`: GKE cluster name\n- `{location}`: Cluster region or zone\n- `{nodepool_name}`: Target TPU or GPU node pool name\n- `{node_name}`: Unresponsive GKE node name (and its Compute Engine `{zone}`)\n- `{issue_time}`: Incident timestamp in RFC3339 UTC\n- `{start_time}`: `{issue_time} - 30m`\n- `{end_time}`: `{issue_time} + 30m`\n\n---\n\n### Step 1: Verify the `NodeStatusUnknown` heartbeat timeout `[Low Risk]`\n\n1. **Check Kubernetes node conditions**: To inspect the node status and verify\n   whether the `Ready` condition is `Unknown` with `Reason: NodeStatusUnknown`\n   (`Kubelet stopped posting node status.`), follow the instructions in the\n   section\n   [Check the node's status and conditions](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Fnode-notready.md.txt).\n2. **Query Cloud Logging (read-only LQL)**: Query `k8s_node` and `k8s_cluster`\n   logs across `[{start_time}, {end_time}]` to confirm when the control plane\n   lost heartbeat contact with `{node_name}`:\n\n```\n(resource.type=\"k8s_node\" OR resource.type=\"k8s_cluster\")\nresource.labels.cluster_name=\"{cluster_name}\"\n(\"{node_name}\" AND (\"NodeNotReady\" OR \"NodeStatusUnknown\" OR \"Kubelet stopped posting node status\"))\ntimestamp >= \"{start_time}\" AND timestamp \u003C= \"{end_time}\"\n```\n\n3. **Query Cloud Monitoring (read-only PromQL)**: Correlate the duration of the\n   `Unknown` state using the GKE system metric\n   `kubernetes.io\u002Fnode\u002Fstatus_condition` (`kubernetes_io:node_status_condition`,\n   GKE `1.32.1-gke.1357001+`) documented in\n   [Monitor health metrics for TPU nodes and node pools](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Ftpus.md.txt),\n   filtered by `condition=\"Ready\"` and `status=\"Unknown\"`:\n\n```promql\nkubernetes_io:node_status_condition{\n  monitored_resource=\"k8s_node\",\n  cluster_name=\"{cluster_name}\",\n  node_name=\"{node_name}\",\n  condition=\"Ready\",\n  status=\"Unknown\"\n}\n```\n\n- **Decision logic**:\n  - If the node `Ready` condition is `True` and `NodeStatusUnknown` is absent,\n    **rule out** an unresponsive node timeout and pivot to workload-level\n    troubleshooting (for example,\n    [Troubleshoot OOM events](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Foom-events.md.txt))\n    rather than repairing or draining the node.\n  - If `Ready` is `Unknown` (`NodeStatusUnknown`), proceed to Step 2.\n\n---\n\n### Step 2: Inspect serial port output for a kernel panic `[Low Risk]`\n\nThe guest OS can't send logs after a fatal kernel freeze, so check the serial\nport output of the node's VM:\n\n- **Cloud Logging**: If serial port logging is enabled (i.e. VM metadata\n  `serial-port-logging-enable` is set to `true`), GKE system logs in Cloud\n  Logging include the node's serial port output. See the section\n  [System logs](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fview-logs.md.txt).\n  Use Cloud Logging when the VM is stopped or has already been replaced by\n  auto-repair, or when you need more than the most recent output.\n- **Running VM**: Follow\n  [Viewing serial port output](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Ftroubleshooting\u002Fviewing-serial-port-output.md.txt)\n  to retrieve the serial port 1 output (`gcloud compute instances\n  get-serial-port-output` with `--port=1`) for `{node_name}` in `{zone}`. This\n  method returns only the most recent 1 MB of output per port.\n\nConsult\n[Troubleshoot Linux VM boot issues due to kernel panic](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Ftroubleshooting\u002Fkernel-panic.md.txt)\nto identify documented kernel panic and hardware crash patterns (such as `Fatal\nMachine check`, `hung_task: blocked tasks`, or `NMI: Not continuing`) in the\nserial port output.\n\n---\n\n### Step 3: Check node auto-repair status `[Low Risk]`\n\nFind out why GKE hasn't repaired the unresponsive node:\n\n- **Autopilot clusters**: Autopilot always repairs nodes, and you can't turn\n  this off (see\n  [Settings for Autopilot and Standard](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt)).\n  Skip the configuration check and check the repair history.\n- **Standard clusters**: Follow\n  [Verify node auto-repair is enabled for a Standard node pool](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt)\n  to check whether `autoRepair` is enabled on `{nodepool_name}`.\n- **Repair history (both modes)**: Auto-repair can be enabled and the repair can\n  still fail. Per\n  [Configure auto repair for TPU slice nodes](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Ftpus.md.txt),\n  check the repair status, including the failure reason, in the operation\n  history described in\n  [Get information about recent automated repair events](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt).\n  If the failure is caused by insufficient quota, tell the user to contact their\n  Google Cloud account representative to increase the quota.\n\n---\n\n### Step 4: Check Compute Engine system events `[Low Risk]`\n\nTo list the system events for `{node_name}` around `{issue_time}`, follow the\ninstructions in the section\n[Querying Cloud Audit Logs](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Ftroubleshooting\u002Ftroubleshooting-reboots.md.txt).\nCompare the `method` field with the table in the \"Reviewing Cloud Audit Logs\"\nsection of the same document, and look for:\n\n- `compute.instances.hostError`: a hardware or software issue on the physical\n  host caused the VM to crash.\n- `compute.instances.preempted`: Compute Engine preempted a Spot VM or\n  preemptible VM. For preempted nodes, also see\n  [Confirm node preemption](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Fnode-notready.md.txt).\n- `compute.instances.automaticRestart`: Compute Engine restarted the VM after a\n  `hostError` or `terminateOnHostMaintenance` event.\n- `compute.instances.guestTerminate`: the VM's operating system initiated the\n  shutdown.\n\n---\n\n### Step 5: Resolution `[High Risk]`\n\n> **Guardrails**:\n> - **Never** force-delete stuck `Terminating` pods on an unresponsive node.\n>   Force deletion doesn't wait for the kubelet to confirm that the pod has\n>   stopped, so a replacement pod can start while the old one is still running.\n>   See\n>   [Force Delete StatefulSet Pods](https:\u002F\u002Fkubernetes.io\u002Fdocs\u002Ftasks\u002Frun-application\u002Fforce-delete-stateful-set-pod\u002F#force-deletion).\n> - **Never** delete GKE-managed Compute Engine VM instances directly (`gcloud\n>   compute instances delete`). Instead, check how long the node has reported\n>   `NodeStatusUnknown` (Step 1), check the serial console output (Step 2), and\n>   rely on node auto-repair, as described in the following steps.\n\n1. **Enable node auto-repair (Standard clusters only)**:\n   - Autopilot clusters always auto-repair nodes, so skip this step.\n   - Before the user enables auto-repair on a multi-host TPU slice node pool,\n     tell them that GKE re-creates the entire node pool when a node in it needs\n     repair (see step 2).\n   - If `autoRepair` is disabled on `{nodepool_name}`, link the user to\n     [Enable auto-repair for an existing Standard node pool](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt)\n     and\n     [Configure auto repair for TPU slice nodes](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Ftpus.md.txt)\n     so they can apply the change themselves.\n2. **Let GKE repair the node**:\n   - Explain that GKE repairs a node that reports `NotReady` or no status for\n     the documented time threshold by draining and re-creating it, and link the\n     \"Repair criteria\" and \"Node repair process\" sections of\n     [Auto-repair nodes](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt).\n     GKE waits one hour for the drain to complete. If the drain doesn't\n     complete, GKE shuts the node down and creates a new node. Tell the user to\n     expect this one-hour drain wait before GKE re-creates the node.\n   - For multi-host TPU slice node pools, note per\n     [Node auto repair in TPU slice nodes](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt)\n     that the entire node pool is re-created.\n3. **Verify node recovery**:\n   - After the repair completes, follow the instructions in the section\n     [Verify that the node has recovered](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Fnode-notready.md.txt)\n     to verify that the repaired node returns to `Ready` status, then confirm\n     that the `JobSet` pods are running again.\n",{"name":5,"metadata":56,"description":7},{"version":57,"category":58},"1.0.1","Containers","main","bb9b3f464aae37af360d079c1d863524955b0363","skills\u002Fcloud\u002Fgke-ai-troubleshooting-node-unresponsive-timeout",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-node-unresponsive-timeout",{"tool":74,"command":75},"bunx","bunx skills add google\u002Fskills --skill gke-ai-troubleshooting-node-unresponsive-timeout",{"tool":77,"command":78},"pnpm","pnpm dlx skills add google\u002Fskills --skill gke-ai-troubleshooting-node-unresponsive-timeout","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-node-unresponsive-timeout\u002FSKILL.md",true,[82],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fattribution.md","REFERENCE","参考文档",1984,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-node-unresponsive-timeout\u002Freferences\u002Fattribution.md",[89,97,104,111,118,125],{"skillNo":90,"name":91,"nameZh":17,"description":92,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":96},"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":98,"name":99,"nameZh":17,"description":100,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":96},"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":105,"name":106,"nameZh":17,"description":107,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":96},"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":112,"name":113,"nameZh":17,"description":114,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":96},"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":119,"name":120,"nameZh":17,"description":121,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":96},"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":126,"name":127,"nameZh":17,"description":128,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":96},"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",[],[]]