Interview's MateKubernetes
Interview's Mate

Kubernetes

K8s · Workloads · GitOps · Cloud

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
Kubernetes topics
Lesson 4/ 160
01. Kubernetes Fundamentals & Architecture

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.

Beginnerkubelet · kube-proxy · CRI3 quiz questions
Practice DevOps Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

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-1 and 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

Loading interactive 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.

Verify kube-proxy, not only object creation

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.

Key takeaway: kubelet is implemented only when this invariant remains observable: 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.

Recover from kube-proxy drift

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.

Key takeaway: Accept the trade-off consciously: Node agents distribute execution close to workloads, but debugging now spans kubelet, CRI, CNI, the kernel, and the cloud instance.

How it works, step by step

Step 1 of 4
Operator intent

1. 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.

kubelet contract → owned state
Key numbers at this step
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-1 in 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-1 first: 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

Native cluster primitive
Best for: See how kubelet, kube-proxy, and the CRI runtime run and network pods on each node. A concrete incident check is 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.

One-off administrative action
Best for: Quickly testing the kube-proxy assumption with 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.

Platform-level abstraction
Best for: Teams that need CRI integrated with guardrails; the evidence path is 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-1 without 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?
Interview tip: Interview sequence: state the invariant, run 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

Loading quiz

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.

Open DevOps Q&A →Tech Learn Q&A
Previous topic
Control Plane Components (kube-apiserver, etcd, kube-scheduler, kube-controller-manager)
Next topic
Local Kubernetes Setups (Minikube, Kind, k3s, Docker Desktop)