Interview Prep/Kubernetes/Architecture & Control Plane

What are the main components of a Kubernetes cluster?

BeginnerConceptArchitecture & Control Plane
Answer

Short answer

A Kubernetes cluster has two parts: the control plane (the "brain" that makes decisions) and worker nodes (the machines that actually run your applications).

Explained in simple words

Think of a big restaurant chain:

  • The control plane is the head office. It decides which kitchen cooks which order, keeps records of everything, and fixes problems when a kitchen goes down.
  • The worker nodes are the kitchens. They do the real cooking — in Kubernetes, that means running your containers.

Control plane components:

Component What it does Restaurant comparison
kube-apiserver The front door. Every request goes through it. The reception desk
etcd A database that stores the entire state of the cluster The record book
kube-scheduler Decides which node each new Pod should run on The manager who assigns orders to kitchens
kube-controller-manager Keeps checking "is everything the way it should be?" and fixes differences The supervisor who walks around fixing problems
cloud-controller-manager Talks to the cloud (AWS, Azure) for load balancers, nodes and routes The person who deals with suppliers

Worker node components:

Component What it does
kubelet The agent on each node. It receives instructions and makes sure the right containers are running.
Container runtime (containerd or CRI-O) Actually pulls images and starts or stops containers.
kube-proxy Sets up networking rules so traffic to a Service reaches the right Pods.

One important rule: every component talks to the API server — nothing else talks to etcd directly.

Example

See the components in a real cluster:

kubectl get nodes                       # the worker (and control plane) machines
kubectl get pods -n kube-system         # control plane and node components running as Pods

Typical output on a kubeadm cluster:

NAME                              READY   STATUS
etcd-master                       1/1     Running
kube-apiserver-master             1/1     Running
kube-controller-manager-master    1/1     Running
kube-scheduler-master             1/1     Running
kube-proxy-7xk2p                  1/1     Running
coredns-5d78c9869d-abcde          1/1     Running

On managed services like EKS, AKS or GKE, the cloud provider runs the control plane for you, so you only see and manage the worker nodes.

What to say in the interview

"A Kubernetes cluster has a control plane and worker nodes. The control plane has the API server, which is the entry point for all requests; etcd, which stores the cluster state; the scheduler, which places Pods on nodes; and the controller manager, which keeps the actual state matching the desired state. Each worker node runs the kubelet, which manages Pods on that node, a container runtime like containerd, and kube-proxy for Service networking. All components communicate through the API server. In EKS or AKS, the control plane is managed by the cloud provider."

Follow-up questions you may get

  • What happens if the control plane goes down? Running Pods keep running, but you can't deploy, scale or heal anything until it's back.
  • Why does only the API server talk to etcd? It keeps one central place for security checks, validation and consistent data.
  • What is CoreDNS? The cluster's DNS server — it lets Pods find Services by name, like orders.shop.svc.cluster.local.
All Kubernetes questions Roadmap: Kubernetes core

More on Architecture & Control Plane