Worker Node Components (kubelet, kube-proxy, Container Runtime Interface / CRI)
See how kubelet, kube-proxy, and the CRI runtime run and network pods on each node.
In plain words
A worker is a shipyard crew: kubelet follows build orders, the runtime runs containers, and the networking agent routes traffic to the right berth. The simple Kubernetes rule is: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
Think of it like…
A worker is a shipyard crew: kubelet follows build orders, the runtime runs containers, and the networking agent routes traffic to the right berth.
Where you’ve seen it
A cluster operator validates a small change and runs kubectl get nodes -o wide; kubectl describe node worker-1. Expected evidence: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed. If the run instead shows this symptom, stop and restore the last known state: A NotReady node may be running containers while its kubelet has stopped reporting, and CNI Service reachability can fail independently of kube-proxy.
Words you’ll hear
- kubelet
- For this lesson, kubelet is the controlling idea: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
- kube-proxy
- kube-proxy is the checkpoint; run
kubectl get nodes -o wide; kubectl describe node worker-1and inspect the owner chain. A NotReady node may be running containers while its kubelet has stopped reporting, and CNI Service reachability can fail independently of kube-proxy. - CRI
- CRI is the outcome to preserve; the cost is explicit: Node agents distribute execution close to workloads, but debugging now spans kubelet, CRI, CNI, the kernel, and the cloud instance.
- Verification evidence
- The evidence command is
kubectl get nodes -o wide; kubectl describe node worker-1. It connects the declaration to this behavior: See how kubelet, kube-proxy, and the CRI runtime run and network pods on each node.
Visual diagram
Theory & deep dive
How kubelet reaches the intended state
See how kubelet, kube-proxy, and the CRI runtime run and network pods on each node. Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
The concrete checkpoint is kubectl get nodes -o wide; kubectl describe node worker-1; compare the kubelet owner, kube-proxy state, and CRI outcome instead of treating YAML acceptance as proof.
Run kubectl get nodes -o wide; kubectl describe node worker-1 after the change and correlate the result with Events and the owning object. Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
kube-proxy: failure boundary and production cost
A NotReady node may be running containers while its kubelet has stopped reporting, and CNI Service reachability can fail independently of kube-proxy. The prerequisite contract is concrete: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
Node agents distribute execution close to workloads, but debugging now spans kubelet, CRI, CNI, the kernel, and the cloud instance. A safe design limits blast radius, records the last good configuration, and uses kubectl get nodes -o wide; kubectl describe node worker-1 as a deterministic rollback checkpoint.
Capture the current state with kubectl get nodes -o wide; kubectl describe node worker-1, then correct the controlling manifest rather than patching a child object; the relevant divergence signal is specific: A NotReady node may be running containers while its kubelet has stopped reporting, and CNI Service reachability can fail independently of kube-proxy.
How it works, step by step
Step 1 of 41. Model the cluster contract
Start from a minimal API, context, or node condition and make this contract explicit: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
- Goal
- See how kubelet, kube-proxy, and the CRI runtime run and network pods on each node.
- Owner
- kubelet
When to use it & trade-offs
What it is
See how kubelet, kube-proxy, and the CRI runtime run and network pods on each node. Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
Why it matters: A NotReady node may be running containers while its kubelet has stopped reporting, and CNI Service reachability can fail independently of kube-proxy. The invariant at risk is specific: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed. The quickest fact check before changing the design is kubectl get nodes -o wide; kubectl describe node worker-1.
When to reach for it
- Use kubelet to enforce this invariant: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
- Use kube-proxy evidence from
kubectl get nodes -o wide; kubectl describe node worker-1in reviews and incident timelines. See how kubelet, kube-proxy, and the CRI runtime run and network pods on each node. - Choose the platform-level abstraction route only when this cost is justified by governance or scale: Node agents distribute execution close to workloads, but debugging now spans kubelet, CRI, CNI, the kernel, and the cloud instance.
When to avoid or be careful
- Avoid assuming kubelet is complete after YAML submission; the required behavior is concrete: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
- Avoid treating the next symptom as random; check the owner and state with
kubectl get nodes -o wide; kubectl describe node worker-1first: A NotReady node may be running containers while its kubelet has stopped reporting, and CNI Service reachability can fail independently of kube-proxy. - Avoid adopting a heavier platform wrapper before measuring its cost: Node agents distribute execution close to workloads, but debugging now spans kubelet, CRI, CNI, the kernel, and the cloud instance.
Native, manual, and managed paths for kubelet
kubectl get nodes -o wide; kubectl describe node worker-1.Strengths: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
Watch out: Node agents distribute execution close to workloads, but debugging now spans kubelet, CRI, CNI, the kernel, and the cloud instance. Recovery must also recognize this signal: A NotReady node may be running containers while its kubelet has stopped reporting, and CNI Service reachability can fail independently of kube-proxy.
kubectl get nodes -o wide; kubectl describe node worker-1; the expected invariant is: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.Strengths: kubectl get nodes -o wide; kubectl describe node worker-1 gives immediate feedback without first building a platform layer.
Watch out: A manual change can hide drift, and unlike kubelet, it does not make this symptom self-documenting: A NotReady node may be running containers while its kubelet has stopped reporting, and CNI Service reachability can fail independently of kube-proxy.
kubectl get nodes -o wide; kubectl describe node worker-1.Strengths: Platform controls can wrap this exact behavior in policy or dashboards: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
Watch out: The added platform ownership buys value at this cost: Node agents distribute execution close to workloads, but debugging now spans kubelet, CRI, CNI, the kernel, and the cloud instance.
Interview signals & numbers to know
When this topic comes up
- Interview anchor: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
- Trace kubelet to CRI through kube-proxy; the invariant is: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
- Recognize the symptom: A NotReady node may be running containers while its kubelet has stopped reporting, and CNI Service reachability can fail independently of kube-proxy.
- Justify the cost: Node agents distribute execution close to workloads, but debugging now spans kubelet, CRI, CNI, the kernel, and the cloud instance.
- Verify with kubectl get nodes -o wide; kubectl describe node worker-1 instead of only inspecting YAML.
Benchmarks & rules of thumb
- 2
- node-local core execution agents are kubelet and a CRI runtime
- 3
- major paths to inspect: kubelet, runtime, and network
- 0
- pods can safely be scheduled when a node is NotReady
Common mistakes & follow-ups
Common interview mistakes
- Debugging only the child object misses the kubelet owner contract: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed.
- Ignoring this telltale condition leads to unrelated changes: A NotReady node may be running containers while its kubelet has stopped reporting, and CNI Service reachability can fail independently of kube-proxy.
- Repeating
kubectl get nodes -o wide; kubectl describe node worker-1without an owner for remediation wastes retry cost. Node agents distribute execution close to workloads, but debugging now spans kubelet, CRI, CNI, the kernel, and the cloud instance.
Likely interviewer follow-ups
- How would API output and runtime evidence prove this behavior: kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed?
- Which owner object, logs, and Events would you inspect for this symptom-A NotReady node may be running containers while its kubelet has stopped reporting, and CNI Service reachability can fail independently of kube-proxy-?
- At what threshold would this cost become unacceptable: Node agents distribute execution close to workloads, but debugging now spans kubelet, CRI, CNI, the kernel, and the cloud instance?
kubectl get nodes -o wide; kubectl describe node worker-1, name the failure, then justify the cost. Invariant: Kubelet watches assigned PodSpecs and asks the CRI runtime to create containers, while kube-proxy programs Service forwarding when that mode is installed. Failure: A NotReady node may be running containers while its kubelet has stopped reporting, and CNI Service reachability can fail independently of kube-proxy. Cost: Node agents distribute execution close to workloads, but debugging now spans kubelet, CRI, CNI, the kernel, and the cloud instance.Knowledge check
Put it into practice
Practice related interview Q&A
Apply Worker Node Components (kubelet, kube-proxy, Container Runtime Interface / CRI) with generative AI interview Q&A and hands-on practice.