Pcornel
Browse topics
Options
Recent
Favorites
Containers · Technical reference

Kubelet

Direct answer

kubelet is the node agent: it registers the node, watches pods assigned to it, starts containers through the runtime, runs probes, mounts volumes and reports status.

When to use this

Use it when a node is NotReady or pods on one node do not start.

First 30 seconds

1. kubectl describe node <n> — conditions and events.

2. On node: systemctl status kubelet, journalctl -u kubelet -e.

3. Runtime reachable (crictl info).

4. Disk/memory pressure.

5. Certificate rotation.

Operational verification

kubelet → API server (node status) → pods assigned → runtime → status

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Docker / containerd / Podman / Kubernetes / OCI-compatible platforms
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformDocker / containerd / Podman / Kubernetes / OCI-compatible platforms
Key commandsystemctl status kubelet
Scope / prerequisiteUse it when a node is NotReady or pods on one node do not start.
What next?2 suggested next steps
Evidence0
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 How to verify Verify boundary

Check kubelet logs for certificate, CRI or cgroup errors. Confirm the node's Ready condition and lease are recent. Confirm the runtime socket path in the kubelet config is correct.

Step 2 Checks Verify boundary
systemctl status kubelet
journalctl -u kubelet --since "30 min ago"
kubectl describe node <node>          # conditions: Ready, MemoryPressure, DiskPressure, PIDPressure
kubectl get node <node> -o jsonpath='{.status.allocatable}'

A node becomes NotReady when the kubelet stops reporting (crash, certificates expired, container runtime down, network). Disk pressure triggers image garbage collection and Pod eviction.

Step 3 Common failures Narrow the fault

Expired kubelet client certificates make the node NotReady. Swap enabled without configuration stops older kubelets. Disk pressure triggers image garbage collection and Pod evictions.

Key points

Check systemctl status kubelet and its journal. Node pressure conditions (memory, disk, PID) cause evictions. Certificates must be valid.

Key checks
  • kubectl describe node <n> — first check for this topic
  • kubectl get pods -o wide — pods, status, node, IP
  • kubectl describe pod <pod> — events and conditions
  • kubectl logs <pod> [-c <c>] [--previous] — container logs (incl. previous crash)
  • kubectl get events --sort-by=.lastTimestamp — recent cluster events
ReferenceWhat it is1 section · depth on demand

How it works

The kubelet watches the API server for Pods with its node name, creates the sandbox and containers through the runtime, runs probes and updates Pod status. It also evicts Pods when node resources run low.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

The kubelet is the node agent. It registers the node, keeps a lease updated, starts Pods through the CRI runtime, runs probes, mounts volumes and reports status.

Node conditions and what they trigger

ConditionSet whenEffect
Ready=False/UnknownKubelet unhealthy or lease not renewedAfter a timeout Pods are evicted by taint-based eviction
MemoryPressureAvailable memory below eviction thresholdBestEffort, then Burstable Pods evicted
DiskPressurenodefs or imagefs lowImage garbage collection, then Pod eviction
PIDPressurePIDs running outPod eviction

Default hard eviction thresholds include memory.available<100Mi and nodefs.available<10%; they are set in the kubelet configuration (evictionHard).

Worked check — node NotReady

kubectl describe node worker2 | sed -n '/Conditions/,/Addresses/p'
kubectl -n kube-node-lease get lease worker2 -o jsonpath='{.spec.renewTime}'
journalctl -u kubelet --since -15m | grep -E 'E[0-9]{4}' | tail

Typical log causes: x509: certificate has expired (rotate kubelet client certificates), container runtime is down (containerd stopped or socket path wrong), failed to get cgroup stats / misconfiguration: kubelet cgroup driver (cgroupDriver mismatch with the runtime).

Configuration file

Modern clusters configure the kubelet with /var/lib/kubelet/config.yaml (KubeletConfiguration) rather than flags; check there for cgroupDriver, evictionHard, containerLogMaxSize and maxPods.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Common mistakes

  • Kubelet and control plane version skew outside support.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
kubeletkubelet node notreadykubernetes node agent
Confirmation

Confirm action

Continue?