🎓 A1Learner
🔍
0 of 51 lessons completed

Kubernetes Architecture

Kubernetes architecture is the shape of a cluster. A control plane makes decisions. Worker nodes run the containers.

The control plane decides

The control plane holds the plan. It knows what should run and where it should run.

kubectl get nodes

Worker nodes do the work

Worker nodes run the containers. The control plane never runs your app itself.

kubectl get pods -o wide

The API server is the front door

Every command reaches the API server first. Nothing bypasses it.

kubectl cluster-info

etcd holds the truth

etcd stores the plan. Every other part reads it to know what is true.

kubectl get pods

Example

kubectl cluster-info

Key points

  • Control plane: the group of parts that decide what should run and where.
  • Worker node: a machine that runs containers for the cluster.
  • API server: the front door of the cluster that takes every request.
  • etcd: the store that holds the true state of the whole cluster.
  • Desired state: the plan for how the cluster should look.
  • Scheduler: the part that picks a machine for each new container.
  • kubelet: the agent on each node that starts and watches containers.

In this example, the command asks where the control plane lives. The output gives its address. The control plane is the brain of the cluster. Worker nodes are its hands.

Note

Every command you run talks to the API server first.

Try it Yourself

Edit the code, then press Run.

Running is simulated · Rust Playground

Exercise

What is the job of the control plane?