{"data":{"slug":"github-google-skills-skills-cloud-gke-ai-troubleshooting-node-unresponsive-timeout-57b0a4da2140","title":"Troubleshoot Unresponsive GKE TPU and GPU Nodes","summary":"Diagnose GKE TPU or GPU nodes stuck in NodeStatusUnknown due to hardware or kernel issues and provide actionable fixes for the user to apply.","url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-gke-ai-troubleshooting-node-unresponsive-timeout-57b0a4da2140","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-google-skills-skills-cloud-gke-ai-troubleshooting-node-unresponsive-timeout-57b0a4da2140","markdown_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-gke-ai-troubleshooting-node-unresponsive-timeout-57b0a4da2140.md","download_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-gke-ai-troubleshooting-node-unresponsive-timeout-57b0a4da2140\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before executing any `gcloud`, REST API, or MCP command, you MUST read [Usage Attribution](references\/attribution.md). For terminal commands, prefix `gcloud` with `CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\/1.0 (skill:gke-ai-troubleshooting-node-unresponsive-timeout)\"` and append `agent-skills\/1.0 (skill:gke-ai-troubleshooting-node-unresponsive-timeout)` to `User-Agent` headers. Only run read-only diagnostic commands; do not modify the cluster.","instructions":"---\nname: gke-ai-troubleshooting-node-unresponsive-timeout\ndescription: >-\n  Diagnose and mitigate GKE TPU or GPU nodes stuck in NotReady \/\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\/attribution.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\/1.0 (skill:gke-ai-troubleshooting-node-unresponsive-timeout)\"`\nand append `agent-skills\/1.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:\/\/cloud.google.com\/sdk\/docs\/install) (`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\/container.viewer`)\n  - Compute Viewer (`roles\/compute.viewer`)\n  - Logs Viewer (`roles\/logging.viewer`)\n  - Monitoring Viewer (`roles\/monitoring.viewer`)\n  - For remediation (`[High Risk]` steps): Kubernetes Engine Cluster Admin\n    (`roles\/container.clusterAdmin`)\n- **Documentation**:\n  - [Troubleshoot nodes with the NotReady status in GKE](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/troubleshooting\/node-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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpus.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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/troubleshooting\/oom-events.md.txt)\n  - [View GKE logs](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/view-logs.md.txt)\n    (Sections: \"System logs\")\n  - [Viewing serial port output](https:\/\/docs.cloud.google.com\/compute\/docs\/troubleshooting\/viewing-serial-port-output.md.txt)\n  - [Troubleshoot Linux VM boot issues due to kernel panic](https:\/\/docs.cloud.google.com\/compute\/docs\/troubleshooting\/kernel-panic.md.txt)\n  - [Auto-repair nodes](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-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:\/\/docs.cloud.google.com\/compute\/docs\/troubleshooting\/troubleshooting-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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/troubleshooting\/node-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 <= \"{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\/node\/status_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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpus.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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/troubleshooting\/oom-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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/view-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:\/\/docs.cloud.google.com\/compute\/docs\/troubleshooting\/viewing-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:\/\/docs.cloud.google.com\/compute\/docs\/troubleshooting\/kernel-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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpus.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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-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:\/\/docs.cloud.google.com\/compute\/docs\/troubleshooting\/troubleshooting-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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/troubleshooting\/node-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:\/\/kubernetes.io\/docs\/tasks\/run-application\/force-delete-stateful-set-pod\/#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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-auto-repair.md.txt)\n     and\n     [Configure auto repair for TPU slice nodes](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpus.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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-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:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/troubleshooting\/node-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","use_cases":["Diagnose unresponsive GKE TPU or GPU nodes with NodeStatusUnknown status","Investigate hardware or kernel issues causing node unresponsiveness","Identify and resolve kernel panics or lockups on GKE nodes"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/google\/skills\/blob\/e3c591afe426ea585e4c21799e5199d6d47cd1be\/skills\/cloud\/gke-ai-troubleshooting-node-unresponsive-timeout\/SKILL.md","source_commit":"e3c591afe426ea585e4c21799e5199d6d47cd1be","license":null,"version":null,"listing_approved_at":"2026-11-17","created_at":"2026-11-16T14:58:01.000000Z","updated_at":"2026-11-17T05:10:29.000000Z","seo_title":"Troubleshoot GKE NodeStatusUnknown","seo_description":"Diagnose and resolve GKE TPU or GPU nodes stuck in NodeStatusUnknown due to hardware or kernel issues.","seo_keywords":["GKE NodeStatusUnknown troubleshooting","GKE TPU node issues","GKE GPU node unresponsiveness","Kernel panic GKE node","GKE node recovery"]}}