Logo von K8s Node Troubleshooting

K8s Node Troubleshooting

Organisation
k8s-servant
k8s-node-troubleshooting

Use when a Kubernetes node is unhealthy or pods will not go onto it: a node NotReady or Unknown, MemoryPressure, DiskPressure or PIDPressure, pods Evicted, pods Pending with "untolerated taint(s)", "Insufficient cpu" or "Insufficient memory" while the node looks idle, a node cordoned (SchedulingDisabled), or the cluster autoscaler not adding or removing nodes. Investigates with kubectl get, describe and events, and proposes fixes. Reads first and asks before changing anything.

Übersicht

Herausgeberk8s-servant
Repositoryk8s-skills
Skill-Namek8s-node-troubleshooting
Sterne
36
Forks
7
Mitgelieferte Dateien
5
LizenzApache-2.0
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • 5 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von k8s-servant auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill K8s Node Troubleshooting in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-node-troubleshooting
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/k8s-servant/k8s-skills.git /tmp/k8s-skills
mkdir -p .claude/skills
cp -r /tmp/k8s-skills/skills/k8s-node-troubleshooting .claude/skills/k8s-node-troubleshooting
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie K8s Node Troubleshooting in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt K8s Node Troubleshooting automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist K8s Node Troubleshooting nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Kubernetes node troubleshooting

Find out why a node is unhealthy, or why pods will not be scheduled onto it, and propose a fix. Read first, ask before changing. Run the investigation commands freely. Run a command under an "Ask first" line only after the user approves that exact command; if your credentials do not allow it, give it to the user to run. Never run a "Proposed fix"; hand it to the user.

You see the node only through the Kubernetes API. Checks on the node itself (the kubelet, the container runtime, the disk) need someone with access to the machine, so they are always proposed fixes for a human.

The commands use placeholders: my-node, my-namespace, my-app and my-pod. Replace them with the real names. Never read Secrets. If output contains passwords, tokens or keys, do not repeat them.

When to use

  • kubectl get nodes shows a node NotReady, Unknown or SchedulingDisabled.
  • A node reports MemoryPressure, DiskPressure or PIDPressure, or pods were Evicted.
  • Pods stay Pending and the FailedScheduling event names taints, Insufficient cpu or Insufficient memory, or unschedulable nodes.
  • The cluster autoscaler does not add a node for Pending pods, or does not remove an empty one.

Hand-offs, by skill name. When the evidence points elsewhere, continue with that skill; if it is not installed, keep going with the steps here and tell the user which skill would help:

  • The nodes are healthy and have room, and the pod itself fails (crash, image, probe, quota): k8s-workload-troubleshooting.
  • A volume cannot attach or mount on the node: k8s-storage-troubleshooting.
  • NetworkUnavailable is True, or the CNI pods on the node fail: k8s-network-troubleshooting.
  • On AKS, a node pool or the cluster is Failed, or an upgrade or scale fails in Azure (quota, VM capacity, a drain blocked by a PodDisruptionBudget): k8s-aks-troubleshooting.

Investigate

Work through the steps in order. Stop when you have the cause and its evidence.

1. List the nodes. STATUS shows Ready, NotReady or Unknown, plus SchedulingDisabled when a node is cordoned.

bash
kubectl get nodes -o wide

2. Describe the node. Read Conditions (status, reason, LastHeartbeatTime), Taints, Unschedulable, Lease (RenewTime), Capacity and Allocatable, Non-terminated Pods with their requests, and Allocated resources.

bash
kubectl describe node my-node

3. See the pods on the node, in every namespace you can read.

bash
kubectl get pods -A -o wide --field-selector spec.nodeName=my-node
kubectl get pods -A --field-selector spec.nodeName=my-node,status.phase=Failed

The second command lists failed pods there, which include Evicted ones.

4. Read the node's events and its heartbeat. Node events are kept in the default namespace; the heartbeat is a Lease named after the node. The built-in view role cannot read Leases; if the second command is forbidden, use LastHeartbeatTime of the conditions in describe node instead.

bash
kubectl get events -A --field-selector involvedObject.kind=Node,involvedObject.name=my-node
kubectl get lease my-node -n kube-node-lease

5. For a Pending pod, read why the scheduler refused it, and what it asks for.

bash
kubectl describe pod my-pod -n my-namespace
kubectl get pod my-pod -n my-namespace -o jsonpath='{.spec.nodeSelector}{"\n"}{.spec.tolerations}{"\n"}{.spec.containers[*].resources.requests}'

6. Look at usage, if the cluster has metrics-server. top shows usage, not requests; the scheduler uses requests. Without metrics-server it fails with "Metrics API not available"; say so and go on.

bash
kubectl top node my-node

7. Open the matching reference and follow its steps:

What you seeReference
NotReady, Unknown, "Kubelet stopped posting node status"references/not-ready.md
MemoryPressure, DiskPressure, PIDPressure, Evicted podsreferences/pressure.md
Insufficient cpu or Insufficient memory, requests near Allocatablereferences/capacity.md
untolerated taint(s), SchedulingDisabled, node(s) were unschedulablereferences/taints.md
Pending pods but no new node, or an empty node that staysreferences/autoscaler.md

Read the results

What the common findings mean (Kubernetes 1.37):

  • Ready Unknown: the node controller has not heard from the kubelet within node-monitor-grace-period (50 seconds by default). The kubelet is down, or the node cannot reach the API server. The Lease in kube-node-lease, normally renewed every 10 seconds, stops changing. The node gets the node.kubernetes.io/unreachable taints.
  • Ready False: the kubelet is running and reports the node is not healthy (for example the container runtime or the network plugin is not ready). The reason and message say which. The node gets the node.kubernetes.io/not-ready taint.
  • Pods on a NotReady node keep their status for a while. Pods tolerate the not-ready and unreachable NoExecute taints for 300 seconds by default (added by the DefaultTolerationSeconds admission controller), then they are evicted. DaemonSet pods tolerate them without a time limit and are not evicted.
  • MemoryPressure, DiskPressure or PIDPressure True: the kubelet crossed an eviction threshold. It adds a NoSchedule taint for that pressure, frees resources, then evicts pods. Node-pressure eviction does not respect PodDisruptionBudgets.
  • FailedScheduling with 0/N nodes are available: ...: each part counts the nodes refused for one reason, for example 1 node(s) had untolerated taint(s), 2 Insufficient cpu or 1 node(s) were unschedulable. The text after preemption: says whether evicting lower-priority pods could help.
  • Insufficient cpu on an idle node: the scheduler adds up the requests of the pods on the node and compares them with Allocatable, not with actual use. Allocated resources in describe node shows the requests as a percentage of Allocatable.
  • SchedulingDisabled, Unschedulable: true: the node is cordoned. New pods do not go there; pods already there keep running.

State the cause in one sentence, then the evidence you saw (the condition and its message, the taint, the event, the numbers), then the proposed fix.

Proposed fix

Show each fix to the user before running it: what it changes and how to undo it. Cordoning, uncordoning, adding or removing a NoSchedule taint and labelling a node are reversible, so they go under "Ask first" and run only after the user says yes. Draining or deleting a node, force-deleting pods and anything on the node host are never run by you: hand them to the user as proposed fixes and say why. Prefer fixing the source the workload or the node pool is managed from when there is one. Write each undo with the values you found.

Uncordon a node whose maintenance is over and that is Ready:

Ask first: the agent runs this only after the user approves it.

bash
kubectl uncordon my-node
# Undo: kubectl cordon my-node

Remove a taint left from a maintenance that is over (the key, value and effect exactly as describe node shows them):

Ask first: the agent runs this only after the user approves it.

bash
kubectl taint nodes my-node example.com/maintenance=true:NoSchedule-
# Undo: kubectl taint nodes my-node example.com/maintenance=true:NoSchedule

Check the kubelet on a node that stopped reporting. This runs on the node, which you cannot reach; a person with access to the machine runs it:

Proposed fix: review before running. The agent does not run this.

bash
systemctl status kubelet
journalctl -u kubelet --since "30 min ago" --no-pager | tail -n 50
sudo systemctl restart kubelet
# Undo: nothing to undo for the first two lines, they only read; a restart cannot be undone, the kubelet just starts again

Move the pods off a node that will not come back soon. Draining evicts every pod that is not a DaemonSet pod and deletes emptyDir data, so never run it yourself:

Proposed fix: review before running. The agent does not run this.

bash
kubectl drain my-node --ignore-daemonsets --delete-emptydir-data
# Undo: kubectl uncordon my-node (the evicted pods are recreated by their controllers, not moved back)

Sources

Checked against the Kubernetes 1.37 documentation:

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill K8s Node Troubleshooting?

Use when a Kubernetes node is unhealthy or pods will not go onto it: a node NotReady or Unknown, MemoryPressure, DiskPressure or PIDPressure, pods Evicted, pods Pending with "untolerated taint(s)", "Insufficient cpu" or "Insufficient memory" while the node looks idle, a node cordoned (SchedulingDisabled), or the cluster autoscaler not adding or removing nodes. Investigates with kubectl get, describe and events, and proposes fixes. Reads first and asks before changing anything.

Warum K8s Node Troubleshooting in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. K8s Node Troubleshooting besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich K8s Node Troubleshooting in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-node-troubleshooting ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können K8s Node Troubleshooting nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit K8s Node Troubleshooting verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie K8s Node Troubleshooting damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill K8s Node Troubleshooting kostenlos?

Ja. Der Skill wird von k8s-servant auf GitHub unter der Lizenz Apache-2.0 veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇