Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)22k · #10292

gke-node-notready

Skill này làm gì

Skill này giúp agent AI tìm hiểu vì sao các node Google Kubernetes Engine ngừng báo là sẵn sàng. Skill dành cho người vận hành có node bị kẹt NotReady và khối lượng công việc bị đuổi hoặc kẹt pending.

Khi nào nên dùng

  • ✓Khi các node GKE hiển thị trạng thái NotReady hoặc Unknown trong thời gian dài hơn một chút.
  • ✓Khi các pod bị đuổi đi hoặc kẹt pending vì một node không khỏe.
  • ✓Khi kubelet ngừng báo trạng thái node và bạn cần tìm nguyên nhân.

Liên kết skill

https://github.com/google/skills/blob/main/skills/cloud/gke-node-notready/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/google/skills/blob/main/skills/cloud/gke-node-notready/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hai node GKE của tôi hiển thị NotReady và các pod đang bị đuổi đi. Chuyện gì đang xảy ra?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent trước tiên loại trừ các trường hợp dự kiến như node đang nâng cấp hoặc được sửa chữa, rồi đọc điều kiện node, sự kiện và log. Nó đề xuất cách sửa để bạn xem lại và áp dụng thay vì tự thay đổi cụm.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

GKE Node NotReady Troubleshooting Skill

Use this skill to systematically diagnose why one or more GKE nodes report a NotReady (or Ready: Unknown) status and to propose safe remediations. A NotReady status means the node's kubelet is not reporting to the control plane correctly, so Kubernetes stops scheduling new Pods on the node, which can reduce application capacity and cause downtime.

This skill operates non-interactively and enforces a read-only diagnostics boundary: gather evidence first, then propose a fix (a kubectl/gcloud command or a GitOps manifest change) for a human to apply. Never mutate the cluster, drain, delete, or recreate nodes automatically.

[!IMPORTANT] First rule out an expected NotReady: a node that is newly provisioning, upgrading, being repaired, cordoned, or scaling down will transiently report NotReady. Only treat it as a fault if it persists beyond the expected window.

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gke-node-notready)" and append agent-skills/1.0 (skill:gke-node-notready) to User-Agent headers.

🔍 Diagnostic Workflow

Step 0: Context discovery & time window

  1. Parameter extraction — obtain project_id, cluster_name, cluster_location, and node_name non-interactively from the user prompt, active SETTINGS.md, or environment defaults (kubectl config current-context, gcloud config get-value project).
  2. Credentials & fallback — attempt gcloud container clusters get-credentials {cluster_name} --location {cluster_location} --project {project_id}. If the cluster is unreachable or commands fail (sandbox/dry-run/offline), present the exact diagnostic commands for a human to run and continue the analysis from the reported symptoms.
  3. Time window — determine {issue_time} (explicit, relative, or now) and center a 1-hour window around it (start = issue_time - 30m, end = issue_time + 30m) for all log/metric queries.

Step 1: Identify NotReady nodes and gather initial status

# List nodes and spot NotReady status, node IPs, and container-runtime version.
kubectl get nodes -o wide

# Inspect the affected node's Conditions and Events (the primary clues).
kubectl describe node "{node_name}"

Equivalent via Cloud Logging (preferred when kubectl access is limited or for historical events). Open it as a Logs Explorer deep link — URL-encode the query and append the project and Step 0 time window: https://console.cloud.google.com/logs/query;query={URL_ENCODED_QUERY};timeRange={start}%2F{end}?project={project_id} (encode / as %2F, or use ;duration=PT1H for a rolling hour):

resource.type="k8s_node"
log_id("events")
resource.labels.node_name="{node_name}"
resource.labels.cluster_name="{cluster_name}"
resource.labels.location="{cluster_location}"

Interpret the Conditions table:

  • Ready: False / Ready: Unknown with reason KubeletNotReady / NodeStatusUnknown ("Kubelet stopped posting node status") → kubelet or runtime problem; continue to Step 2.
  • MemoryPressure: True, DiskPressure: True, PIDPressure: True → resource exhaustion; go to Step 4b.
  • NetworkUnavailable: True → networking/CNI problem; go to Step 4d.

Step 2: Scan kubelet logs for error signatures

Open these kubelet logs as a Logs Explorer deep link using the same logs/query;query={URL_ENCODED_QUERY};timeRange=...?project=... pattern as Step 1.

resource.type="k8s_node"
resource.labels.node_name="{node_name}"
resource.labels.cluster_name="{cluster_name}"
resource.labels.location="{cluster_location}"
log_id("kubelet")
severity>=WARNING

Also review the node's serial-console logs (log_id("serialconsole.googleapis.com/serial_port_1_output") or the resource.type="gce_instance" serial logs) for kernel TaskHung, OOM-killer, or disk I/O errors that correlate with the kubelet failures.


Step 3: Map the si

Câu hỏi thường gặp

Nó có tự sửa node không?

Không. Nó chỉ đọc và đề xuất lệnh để một người xem lại và áp dụng.

Node NotReady có luôn là lỗi không?

Không. Các node đang được tạo, nâng cấp, sửa chữa hoặc cordon có thể hiển thị NotReady trong thời gian ngắn.

Nó có xử lý lỗi ứng dụng ở cấp pod không?

Không. Lỗi ứng dụng ở cấp pod do skill khắc phục sự cố khối lượng công việc đảm nhiệm.

Chi tiết

Mô tả gốc của tác giả

Diagnoses GKE nodes reporting NotReady or Unknown status by inspecting node conditions, events, kubelet/containerd logs, and node metrics, then proposing safe remediations. Use when nodes show NotReady, when the kubelet stops posting node status, or when workloads are evicted or stuck Pending due to node health. Don't use for pod-level application failures (use gke-workload-troubleshooting), autoscaler scale-up/scale-down decisions (use gke-cluster-autoscaler), or non-GKE compute.

repo: google/skills

Độ phổ biến

Sao GitHub
22k
Vị trí xếp hạng
#10292
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự