🎓 A1Learner
🔍
0 of 51 lessons completed

Kubernetes: The Control Plane

The control plane is the group of parts that run a Kubernetes cluster. It takes your commands, stores the plan, and drives every node toward it.

The API server checks every request

You ask for three copies. The API server checks the request before it stores anything.

kubectl get deployments

etcd remembers the plan

The plan lives in etcd. If a part restarts, it reads etcd and relearns the truth.

kubectl get pods

The scheduler finds a home

A new container has no node yet. The scheduler picks the node with room for it.

kubectl get pods -o wide

Controllers close the gap

A container dies. A controller sees the gap and asks for a replacement container.

kubectl get pods

Example

kubectl get pods

Key points

  • API server: the front door that takes every request and checks it first.
  • etcd: the store that holds the plan for the whole cluster.
  • Scheduler: the part that picks a node for each container that has no home yet.
  • Controller manager: the part that watches the state and fixes drift toward the plan.
  • Use the command line tool to talk to the API server. It is the only way in.

In this example, the command lists the running containers. The output shows etcd, the API server, the scheduler, and the controller manager all running. These are the control plane parts.

Note

A small cluster can run the whole control plane on one node.

Try it Yourself

Edit the code, then press Run.

Running is simulated · Rust Playground

Exercise

Which control plane part picks a node for a new container?