Day 4 of LFS250 | Kubernetes Architecture

Day 4 of LFS250 and today we looked inside the black box. No more treating Kubernetes as magic — it's time to understand the actual anatomy of a cluster.

TIL: A Kubernetes cluster is a carefully orchestrated conversation between a Control Plane and Worker Nodes — and every component has exactly one job.

When you run kubectl apply -f deployment.yaml, have you ever wondered what actually happens? Today's session walked through exactly that, and it was one of those "ohhhh" moments.

A K8s cluster is split into two distinct layers:


The Control Plane — the brain of the cluster

  • kube-apiserver — the single entry point for everything. Every request — from kubectl, from internal components, from you — goes through here. It's the front door, and nothing bypasses it.

  • etcd — a distributed key-value store that holds the entire state of the cluster. If etcd is healthy, the cluster can recover from almost anything. Treat it like gold.

  • kube-scheduler — watches for newly created pods that have no node assigned yet, and decides which node they should land on based on resource availability and constraints.

  • kube-controller-manager — runs a set of controllers (node controller, replication controller, etc.) that continuously watch the cluster state and reconcile it toward the desired state.

  • cloud-controller-manager — the bridge between K8s and your cloud provider's API (think load balancers, storage volumes, node lifecycle on AWS/GCP/Azure).


The Worker Nodes — where your workloads actually live

  • kubelet — the agent running on every node. It receives instructions from the control plane and ensures the right containers are running as specified.

  • kube-proxy — handles network rules on each node, enabling communication between pods and services across the cluster.

  • Container Runtime — the engine that actually runs the containers (containerd, CRI-O, etc.). Kubernetes talks to it via the CRI (Container Runtime Interface).


The flow that clicked for me today:

You submit a manifest → API server validates & stores it in etcd → Scheduler picks a node → kubelet on that node pulls the image & starts the container → Controllers watch & maintain it forever.

It's not magic. It's a distributed control loop running at every layer.

Understanding the architecture doesn't just satisfy curiosity — it makes debugging so much more intuitive. Now when something breaks, I know where to look.

Day 4 complete. The cluster makes sense now.