Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)22k ยท #10292

gke-node-notready

Fungsinya

Skill ini membantu agent AI mencari tahu mengapa node Google Kubernetes Engine berhenti melaporkan diri sebagai siap. Cocok untuk operator yang node-nya macet NotReady dan beban kerjanya dikeluarkan atau tertahan pending.

Kapan dipakai

  • โœ“Saat node GKE menampilkan status NotReady atau Unknown lebih lama dari sebentar.
  • โœ“Saat pod dikeluarkan atau tertahan pending karena sebuah node tidak sehat.
  • โœ“Saat kubelet berhenti melaporkan status node dan Anda perlu mencari tahu penyebabnya.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/google/skills/blob/main/skills/cloud/gke-node-notready/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œDua node GKE saya menampilkan NotReady dan pod saya dikeluarkan. Apa yang terjadi?โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent pertama-tama menyingkirkan kasus yang memang diharapkan, seperti node yang sedang diperbarui atau diperbaiki, lalu membaca kondisi node, event, dan log. Agent mengusulkan perbaikan untuk Anda tinjau alih-alih mengubah klaster sendiri.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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

Pertanyaan umum

Apakah ia memperbaiki node secara otomatis?

Tidak. Skill hanya membaca dan mengusulkan perintah untuk ditinjau dan diterapkan oleh orang.

Apakah node NotReady selalu berarti ada kesalahan?

Tidak. Node yang sedang dibuat, diperbarui, diperbaiki, atau di-cordon bisa sesaat menampilkan NotReady.

Apakah ia menangani error pada tingkat aplikasi pod?

Tidak. Kegagalan aplikasi di tingkat pod dicakup oleh skill pemecahan masalah beban kerja.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
22k
Peringkat
#10292
Lisensi
Apache-2.0
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa