Skip to content
tezvyn:

Core control plane components

Source: interviewEasyHow cards are made

Summary

knowledge of cluster brain components.

Key points

api-server as the front door, etcd as state store, scheduler placing pods, and controller-manager running reconciliation loops, plus cloud-controller-manager.

What's really being asked

This checks whether you can cleanly separate control plane responsibilities from node-level agents.

The full answer

The kube-apiserver is the front door of the cluster; it validates and serves the REST API and is the only component that reads and writes etcd, so everything goes through it. etcd is a distributed, strongly consistent key-value store that holds the entire cluster state, the single source of truth. The kube-scheduler watches for Pods with no assigned Node and selects a suitable Node based on resources and constraints. The kube-controller-manager runs the built-in controllers, each a reconciliation loop driving actual state toward desired state, such as the node, replicaset, and deployment controllers. The cloud-controller-manager separates cloud-provider-specific logic like load balancers and node lifecycle. Together these form the brain; the node side runs kubelet, kube-proxy, and a container runtime, which are not control plane components.

The mistakes people make

Including kubelet or kube-proxy as control plane components. Saying the scheduler talks directly to etcd. Forgetting etcd entirely. Conflating the controller-manager with the scheduler.

What usually comes next

Which component talks to etcd? What does the scheduler decide versus the kubelet? Why split out the cloud-controller-manager? How is the control plane made highly available?

A concrete example

You apply a Deployment: the request hits the kube-apiserver, which persists the object in etcd. The deployment and replicaset controllers in the controller-manager notice the desired replica count and create Pod objects. The scheduler sees the unscheduled Pods and binds each to a Node. Only then does the node's kubelet, outside the control plane, actually start the containers.

Interview question

Which component is the only one that reads from and writes to etcd directly?

  • a.The kube-controller-manager
  • b.The kubelet on each node
  • c.The kube-scheduler
  • d.The kube-apiserverCorrect
Why?

All access to etcd is funneled through the kube-apiserver, which serves the API. The scheduler and controller-manager interact with etcd indirectly via the apiserver, and the kubelet runs on nodes.

Just read this? Test yourself on what you have been reading.

Read the original → kubernetes.io

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Open roles that interview on kubernetes — each one lists the topics its interview covers.

See open roles