The kubelet is the primary node agent of Kubernetes: a process that runs on every worker node, and usually on control plane nodes as well, and makes sure that the containers described in Pod specifications are actually running and healthy on that machine. It does not schedule work itself; it receives Pods that the scheduler has already bound to its node and turns them into running containers through a container runtime.
In a Kubernetes cluster, the kubelet is the point where the declarative model meets real hardware. The API server stores the desired state, and the kubelet runs a continuous reconciliation loop that compares that desired state with what exists on the node, then starts, restarts or removes containers until both match, while reporting node and Pod status back to the control plane.
How the kubelet runs Pods on a node
The kubelet works by watching the API server for Pods whose spec.nodeName equals its own node name. When a new Pod appears, it prepares volumes, pulls images, sets up networking and starts the containers in order, beginning with init containers and then the application containers and sidecars.
The kubelet does not talk to containers directly. It calls a runtime such as containerd or CRI-O through the Container Runtime Interface (CRI), a gRPC API. Networking is delegated to a CNI plugin, and storage to CSI drivers. This plug-in design is why the kubelet stopped supporting Docker Engine directly when the dockershim component was removed in Kubernetes 1.24.
The table below lists the main components the kubelet coordinates on a node and the role each one plays.
| Component | Interface | What the kubelet asks it to do |
|---|---|---|
| Container runtime | CRI (gRPC) | Pull images, create Pod sandboxes, start and stop containers |
| Network plugin | CNI | Attach the Pod sandbox to the cluster network and assign an IP |
| Storage driver | CSI | Mount and unmount volumes for the Pod |
| Device plugins | Device plugin API | Expose GPUs and other special hardware to containers |
| cgroups | Linux kernel | Enforce CPU and memory requests and limits |
Besides Pods from the API server, the kubelet can run static Pods defined as manifest files in a local directory, typically /etc/kubernetes/manifests. Tools such as kubeadm use static Pods to bootstrap the control plane itself, because the API server cannot schedule its own first instance. The kubelet creates a read-only mirror Pod in the API so that static Pods remain visible to kubectl.
Health checks, status and node registration
The kubelet is responsible for container health probes, which decide whether a container is alive, ready to receive traffic or still starting. A failed liveness probe makes the kubelet restart the container according to the Pod restart policy, while a failed readiness probe only removes the Pod from Service endpoints.
The following table compares the three probe types and their consequences.
| Probe | Question it answers | Result of failure |
|---|---|---|
| Liveness probe | Is the process still working? | Container is killed and restarted |
| Readiness probe | Can it serve requests now? | Pod is removed from Service endpoints |
| Startup probe | Has slow initialization finished? | Other probes wait; container restarts after the threshold |
At startup the kubelet registers the node with the API server, reporting capacity such as CPU, memory, ephemeral storage and the maximum Pod count, which defaults to 110 Pods per node. It then sends heartbeats through Lease objects in the kube-node-lease namespace, by default every 10 seconds. If heartbeats stop for the grace period, about 40 seconds by default, the node controller marks the node NotReady and later evicts its Pods.
The kubelet also exposes an authenticated HTTPS API, usually on port 10250. The API server uses it for kubectl logs, kubectl exec and port forwarding, and metrics collectors read resource usage through its summary and cAdvisor endpoints.
Resource management and node-pressure eviction
The kubelet translates requests and limits into cgroup settings and assigns each Pod a quality of service (QoS) class: Guaranteed, Burstable or BestEffort. These classes determine which Pods the kubelet sacrifices first when the node runs short of resources.
Node-pressure eviction is the kubelet mechanism that frees resources before the kernel steps in. When available memory, disk space or inodes fall below configured eviction thresholds, the kubelet terminates Pods, starting with BestEffort and those that most exceed their requests. Hard thresholds act immediately; soft thresholds wait for a grace period.
The table summarizes important kubelet configuration settings that affect capacity and stability.
| Setting | Typical value | Effect |
|---|---|---|
| evictionHard | memory.available below 100Mi | Immediate eviction when the threshold is crossed |
| systemReserved | Several hundred MiB of memory | Keeps resources for the operating system |
| kubeReserved | Sized to node capacity | Keeps resources for the kubelet and runtime |
| maxPods | 110 | Upper limit of Pods on the node |
| cgroupDriver | systemd | Must match the container runtime driver |
| imageGCHighThresholdPercent | 85 | Disk usage that triggers image garbage collection |
Reserving resources matters because node allocatable equals capacity minus reservations and eviction thresholds. Without reservations, a busy node can starve the kubelet itself, which then misses heartbeats and turns a resource problem into a node failure.
How the kubelet differs from related components
The kubelet is often confused with other components that also act on nodes or Pods. The key distinction is that the kubelet is the only component that actually starts containers; the others either decide placement, route traffic or send commands.
| Component | Where it runs | Main responsibility |
|---|---|---|
| kubelet | Every node | Runs and supervises Pod containers |
| kube-scheduler | Control plane | Chooses the node for each Pod |
| kube-proxy | Every node | Programs Service routing rules |
| kubectl | Operator workstation | Sends requests to the API server |
| Container runtime | Every node | Executes containers on request of the kubelet |
Unlike the components in a DaemonSet, the kubelet usually runs as a systemd service on the host, not as a Pod, because it must be running before any Pod can exist. In managed services such as Amazon EKS or Google Kubernetes Engine, the provider configures the kubelet on node images, although some parameters can still be tuned.
Security and common operational problems
Because the kubelet can execute commands in any container on its node, its API is a high-value attack target. Secure configurations disable anonymous authentication, use Webhook authorization against the API server, and close the legacy read-only port 10255. The NodeRestriction admission plugin limits each kubelet to modifying only its own Node object and the Pods bound to it.
Most kubelet incidents fall into a few recognizable patterns:
- Cgroup driver mismatch between kubelet and runtime prevents Pods from starting.
- Expired client certificates stop the node from authenticating; enable certificate rotation.
- Disk pressure from images and logs triggers evictions; tune image garbage collection.
- Version skew beyond the supported range breaks compatibility; the kubelet must not be newer than the API server.
A plain-language summary
Think of a Kubernetes cluster as a restaurant. The control plane is the manager who writes the orders, and each server in the cluster is a kitchen station. The kubelet is the cook at each station. It reads the orders meant for its station, prepares them, and keeps checking that each dish is still right.
If an application crashes, the kubelet notices and restarts it. It also tells the manager regularly that the station is working. When the kubelet stops reporting, the cluster assumes the machine is gone and moves the work elsewhere.
An example from practice
A platform team runs a 40-node Kubernetes cluster for an online retailer. During a sales campaign, several nodes start reporting NotReady, and Pods are rescheduled repeatedly. Investigation with journalctl -u kubelet shows that the kubelet missed its heartbeats because memory-hungry batch Pods with no requests had consumed nearly all node memory.
The team sets systemReserved and kubeReserved to 1 GiB of memory each, raises the hard eviction threshold to 500Mi, and requires memory requests through a namespace LimitRange. After the change, the kubelet evicts the BestEffort batch Pods before the node runs out of memory, the nodes stay Ready, and checkout services remain available throughout the next campaign.