tezvyn:

Core control plane components

AI-drafted, machine-checkedSource: interviewbeginner
WHAT IT TESTS

knowledge of cluster brain components.

OUTLINE

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

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

A GOOD ANSWER COVERS 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.

COMMON WRONG ANSWERS 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.

LIKELY FOLLOW-UPS 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?

ONE 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.

Read the original → kubernetes.io

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.