Kubernetes node

On this page 7

A Kubernetes node is a physical or virtual machine that provides CPU, memory, storage and networking for running Pods in a Kubernetes cluster. Each node runs a small set of agents, chiefly the kubelet and a container runtime, that receive instructions from the control plane and turn them into running containers. In Kubernetes and in the wider cloud ecosystem, the node is the unit of compute capacity that schedulers place work on and that autoscalers add or remove.

The term covers both worker nodes, which run application workloads, and control plane nodes, which host the API server, scheduler, controller manager and often etcd. In managed services, the provider usually hides the control plane, so users interact mostly with worker nodes grouped into node pools of identical machines.

Components that run on every Kubernetes node

Every node runs the agents needed to execute and connect Pods. The kubelet registers the node with the API server, watches for Pods assigned to it and drives the container runtime through the Container Runtime Interface (CRI). It also runs liveness, readiness and startup probes and reports Pod and node status back to the control plane.

The container runtime, most commonly containerd or CRI-O, pulls images, creates containers and manages their isolation through Linux namespaces and cgroups. Kube-proxy programs iptables or IPVS rules so that Service virtual IPs reach the right Pods, although some network plugins replace it with eBPF datapaths. A CNI plugin assigns Pod IP addresses and connects Pods across nodes.

ComponentRole on the nodeCommon implementations
KubeletRuns assigned Pods and reports statusBuilt into Kubernetes
Container runtimePulls images and runs containerscontainerd, CRI-O
Kube-proxyImplements Service routing rulesiptables, IPVS, nftables modes
CNI pluginProvides Pod networkingCalico, Cilium, Flannel, cloud CNIs
Node agentsLogging, monitoring, storage driversUsually deployed as DaemonSets
Node-level components and their roles

Cluster-wide helpers such as log shippers, metrics exporters and CSI storage drivers are usually deployed as a DaemonSet, which guarantees one copy per eligible node.

Node status, heartbeats and conditions

The control plane decides whether a node is healthy from heartbeats and conditions reported by the kubelet. Heartbeats are sent mainly by renewing a Lease object in the kube-node-lease namespace, by default about every 10 seconds, which is far cheaper than rewriting the full node status. If leases stop arriving for the node monitor grace period (roughly 40 to 50 seconds, depending on version and configuration), the node controller marks the node as unknown.

The node object also exposes capacity and allocatable resources, addresses, labels and the conditions listed below. Each condition carries a status of True, False or Unknown.

ConditionMeaning when abnormalTypical consequence
ReadyFalse or Unknown: node cannot run Pods reliablyTaint applied, Pods evicted after a delay
MemoryPressureTrue: available memory is lowNew BestEffort Pods blocked, evictions
DiskPressureTrue: node or image filesystem is lowImage garbage collection, evictions
PIDPressureTrue: too many processesNew Pods restricted, evictions
NetworkUnavailableTrue: routes not configuredPods cannot communicate
Standard node conditions

When a node becomes not ready or unreachable, Kubernetes adds NoExecute taints. Pods tolerate them for 300 seconds by default, after which they are evicted and their controllers recreate them elsewhere.

Capacity, allocatable resources and Pod placement

A node’s raw capacity is not entirely available to Pods. The kubelet subtracts kube-reserved, system-reserved and the hard eviction threshold to compute allocatable resources, which the scheduler uses when it matches Pod requests to nodes. Default hard eviction thresholds include memory.available<100Mi and nodefs.available<10%.

The scheduler filters nodes by resource requests, labels and node selectors, node affinity, taints and tolerations and topology spread constraints, then scores the remaining candidates. Well-known labels such as kubernetes.io/hostname, topology.kubernetes.io/zone and node.kubernetes.io/instance-type support zone-aware placement. By default a node accepts at most 110 Pods, a limit set by the kubelet’s maxPods setting and often constrained further by the CNI’s IP address allocation.

MechanismDefined onEffect
Node selectorPodRequires exact label matches
Node affinityPodRequired or preferred label expressions
TaintNodeRepels Pods without a matching toleration
TolerationPodAllows scheduling onto tainted nodes
Topology spreadPodBalances replicas across zones or hosts
Placement controls that target nodes

Node lifecycle operations and autoscaling

Operators manage nodes through a predictable lifecycle. kubectl cordon marks a node unschedulable without touching running Pods, and kubectl drain cordons the node and evicts its Pods while respecting PodDisruptionBudgets. After maintenance, kubectl uncordon returns it to service. Rolling node upgrades in managed services follow the same cordon, drain and replace pattern.

In cloud environments, nodes are usually treated as disposable cattle rather than pets. The Cluster Autoscaler adds nodes to a node group when Pods cannot be scheduled and removes underused nodes, while tools such as Karpenter provision individually sized instances directly. The Horizontal Pod Autoscaler scales Pods, not nodes, so the two layers work together.

SituationRecommended approachReason
Mixed workload sizesSeveral node pools by instance typeReduces fragmentation and waste
GPU or special hardwareDedicated pool with taintsKeeps general Pods off costly nodes
Spiky demandCluster Autoscaler or KarpenterMatches capacity to pending Pods
Fault-tolerant batch jobsSpot or preemptible nodesLower cost with tolerable interruption
Choosing a node strategy

Common mistakes when operating Kubernetes nodes

Most node incidents come from resource misconfiguration rather than hardware failure. The following mistakes recur across clusters of all sizes.

  • Omitting resource requests, which lets the scheduler overpack a node and triggers memory evictions under load.
  • Skipping system reservations, so the kubelet and runtime compete with Pods and the node flaps between Ready and NotReady.
  • Running a single node pool in one zone, which turns a zonal outage into a full application outage.
  • Draining without PodDisruptionBudgets, which can remove every replica of a service at once.
  • Letting image caches grow unchecked, leading to DiskPressure and failed Pod starts.

The decisive recommendation is to set requests on every container and reserve resources for system daemons, because accurate allocatable values are what keep node scheduling predictable.

The short version

A Kubernetes node is one of the computers that does the actual work in a Kubernetes system. The control plane decides what should run, and the nodes are the machines that run it.

Picture a delivery company. Headquarters plans the routes, but the trucks carry the parcels. Each node is a truck with limited space, a driver called the kubelet, and a dashboard that reports back to headquarters. If a truck breaks down, headquarters moves its parcels to other trucks.

Where it makes a difference

An online retailer runs its shop on a managed Kubernetes service with two node pools across three zones: one pool of general-purpose machines with 8 vCPUs and 32 GB of memory for web and API Pods, and one tainted GPU pool for product image recognition. Every container declares CPU and memory requests, and each node reserves about 1 GB of memory for system daemons.

During a seasonal sale, pending Pods trigger the Cluster Autoscaler, which grows the general pool from 9 to 24 nodes within minutes. When one zone loses connectivity, its nodes turn NotReady, their Pods are evicted after the default toleration period, and replicas in the other two zones absorb the traffic. The shop stays online through both the traffic peak and the zonal outage.