finding-google-skills
Locates and loads the right Google product skill on demand from a remote catalog index, instead of preloading every skill. Use at the START of any request…
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
$ npx -y skills add google/skills --skill gke-node-notready --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/gke-node-notreadyContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: gke-node-notready metadata: category: Containers description: >- 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.
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.
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.
--------------------------------------------------------------------------------
# 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:**
`NodeStatusUnknown` ("Kubelet stopped posting node status") → kubelet or runtime problem; continue to Step 2.
exhaustion; go to Step 4b.
--------------------------------------------------------------------------------
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>=WARNINGAlso 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.
--------------------------------------------------------------------------------
| Kubelet / event signature | Likely root cause | Go to | | --- | --- | --- | | `runtime is down`, `Container runtime not ready`, errors on `/run/containerd/containerd.sock` (connection refused / DeadlineExceeded) | Container runtime (`containerd`) down or unresponsive | Step 4a | | `Got sys oom event from cadvisor` / kernel OOM-killer in serial logs | System (node-level) OOM killed critical processes | Step 4b | | `PLEG is not healthy` | PLEG stalled, usually node overload (CPU/disk) | Step 4c | | `TaskHung` for `containerd`/`kubelet`, high disk latency | Disk throttling / I/O starvation | Step 4b | | `failed to ensure lease`, `leases.coordination.k8s.io ... namespace kube-node-lease ... terminating` | `kube-node-lease` termination → NotReady flapping | Step 4f | | Kubelet cannot reach API server, TLS/dial timeouts | Kubelet ↔ control-plane connectivity | Step 4d | | `NetworkPluginNotReady`, `cni plugin not initialized`, `NetworkUnavailable` | CNI plugin failure | Step 4d | | Node-critical DaemonSet Pods (CNI, kube-proxy, metadata) blocked from admission | Admission webhook interference | Step 4e | | Only generic `NodeNotReady`, no other signature | Cause unclear — widen to Step 4d, then escalate | Escalation |
--------------------------------------------------------------------------------
This repository contains Agent Skills for Google products and technologies, including Google Cloud.
Repo: google/skills
Locates and loads the right Google product skill on demand from a remote catalog index, instead of preloading every skill. Use at the START of any request…
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.…
Provides expert guidance on authenticating and authorizing to Google Cloud services and APIs, covering human users, service identities, Application Default…
Guides a developer's first steps on Google Cloud, covering account creation, billing setup, project management, and deploying a first resource. Use when a new…
Searches, retrieves, and synthesizes official Google developer documentation across Google Cloud, AI/Gemini, Android, Chrome, Web, Flutter, Go, Firebase, and…
Guides developers through managing (adding, removing, and clearing) audience members for Google products using the Data Manager API and its associated client…