Keyboard Shortcuts N Next post
P Previous post
S Save / unsave
R Read aloud
T Toggle theme
/ Focus search
Esc Close panels
🔥
Ready to read...
K8s Architecture Kubernetes Kubernetes: From Zero to Production Module 2 - Cluster Architecture

Worker Nodes - kubelet, kube-proxy, and Container Runtime

Reviewed & accurate
AI Summary

What You Will Learn

Intermediate

  • The three worker node components
  • How kubelet manages Pods
  • How kube-proxy handles networking
ComponentRole
kubeletAgent that manages Pods on the node
kube-proxyNetwork proxy, handles Service routing
Container RuntimeRuns containers (containerd, CRI-O)

kubelet

The kubelet is the node agent. It receives Pod specs from the API server and ensures the containers are running and healthy.

What kubelet doestext
# 1. Receives Pod spec from API Server
# 2. Tells container runtime to start containers
# 3. Monitors Pod health (liveness/readiness probes)
# 4. Reports status back to API Server
# 5. Restarts failed containers

kube-proxy

kube-proxy manages network rules on each node. It enables Service abstraction - routing traffic to the right Pods.

How kube-proxy works
When you create a Service, kube-proxy programs iptables/IPVS rules on every node. Traffic to the Service IP is redirected to a healthy Pod.

Container Runtime

The container runtime actually runs containers. Kubernetes supports any runtime that implements the CRI (Container Runtime Interface).

RuntimeUsed by
containerdDefault in modern K8s
CRI-ORed Hat OpenShift
Docker (via dockershim)Removed in K8s 1.24+

Practical Exercise

Run: kubectl get nodes -o wide (see node info)
Run: kubectl describe node minikube (see all components)
SSH into node: minikube ssh
Inside: ps aux | grep kubelet (see kubelet running)

Key Takeaways

  • kubelet: manages Pods on the node (start, monitor, restart).
  • kube-proxy: handles Service networking (iptables/IPVS rules).
  • Container runtime: runs containers (containerd is default).
  • Docker is no longer supported in K8s 1.24+ - use containerd.
  • All three run on every worker node.
Previously: Lesson 07 covered control plane.
Today: You learned: What runs on worker nodes and how they manage Pods.
Next: Lesson 09 covers namespaces.
Test Your Knowledge
How did you find this?

Comments

Join the discussion! Sign in with your Google or Blogger account, or comment as Anonymous - no account needed. For quick questions, also reach me on Telegram @cytestch.

Comments