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 deploymentsetcd remembers the plan
The plan lives in etcd. If a part restarts, it reads etcd and relearns the truth.
kubectl get podsThe scheduler finds a home
A new container has no node yet. The scheduler picks the node with room for it.
kubectl get pods -o wideControllers close the gap
A container dies. A controller sees the gap and asks for a replacement container.
kubectl get podsExample
kubectl get podsKey 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?