The Illustrated Guide to the Kubernetes Control Plane | Sealos Blog
Sealos·2025-09-17·via Sealos Blog
Kubernetes gets labeled as “the operating system for the cloud,” but it’s the control plane that makes Kubernetes feel alive. It schedules your apps, keeps them healthy, enforces policies, and presents a single source of truth for the current and desired state of your cluster. If you’ve ever wondered why deleting a Pod causes another one to magically appear, or how your cluster decides where to run things, you’re in the right place.
This illustrated guide walks you through the what, why, and how of the Kubernetes control plane. We’ll demystify the components, trace real request paths, show practical commands and YAML, and share tips for operating and troubleshooting a production-grade control plane—whether you’re running it yourself, on a managed service, or with platforms like Sealos that make Kubernetes clusters easy to provision and manage.
The control plane is the “brain” of your Kubernetes cluster. It’s a set of components that:
Provide an API for everything in the cluster
Store and replicate the cluster’s state
Decide what should run, where, and when
Continuously reconcile actual state to match desired state
In short: you tell the control plane what you want; it figures out how to make it true and keep it true.
Core Control Plane Components
kube-apiserver: Front door to the cluster. Validates requests, persists state, and serves all client traffic (kubectl, controllers, webhooks).
etcd: Strongly consistent key–value store holding the source of truth for cluster state.
kube-scheduler: Assigns Pods to Nodes based on resource availability, constraints, and policies.
kube-controller-manager: Runs the built-in controllers (Deployment, ReplicaSet, Node, Job, etc.) that ensure desired state.
cloud-controller-manager (optional): Integrates with your cloud provider for load balancers, volumes, and node lifecycle.
Supporting components (not strictly part of the control plane):
kubelet (node agent): Runs on each node, starts/stops containers based on PodSpecs.
kube-proxy or CNI proxy: Implements Service networking rules.
Big-Picture Diagram
Below is a simplified view of how components interact to reconcile state:
The control plane underpins everything you do on Kubernetes. Its characteristics directly impact:
Reliability: Self-healing and reconciliation loops ensure apps recover from failures.
Security: Authentication, authorization, admission policies, and auditing are enforced at the API server.
Scalability: Efficient watches, caches, and scheduling enable large clusters to perform well.
Consistency: etcd provides strongly consistent state; controllers converge the world to match it.
Extensibility: Webhooks and custom controllers let you add new behaviors and APIs without forking Kubernetes.
If the control plane is healthy, your cluster can withstand node failures, pod crashes, and deploys gone wrong. If it’s not, everything else becomes brittle.
Let’s follow a typical flow: deploying a new app to your cluster.
Step 1: You Declare Desired State
You apply a Deployment manifest:
You run:
The kube-apiserver receives the request, authenticates and authorizes it, runs admission plugins, then persists the Deployment object into etcd.
Step 2: Controllers Reconcile
The Deployment controller watches for Deployments. When it sees your new Deployment:
It creates a ReplicaSet with the desired template and replicas.
The ReplicaSet controller sees the new ReplicaSet and creates three Pods.
Step 3: Scheduling
The scheduler watches for unscheduled Pods (Pods without a nodeName). For each Pod, it:
Scores candidate nodes based on filters (taints/tolerations, affinities, resource availability).
Picks the best node and binds the Pod to it by updating the Pod’s spec.nodeName through the API.
Step 4: Nodes Act
The kubelet running on the chosen node watches for Pods assigned to it. It:
Pulls the container images (if needed).
Starts containers via the container runtime (containerd, CRI-O).
Reports status back to the API server.
At any point, if a Pod crashes, the controller notices and creates a replacement; if a node goes NotReady, controllers reschedule Pods elsewhere according to policy.
The Reconciliation Pattern
Every controller in Kubernetes follows a simple control loop:
This “eventually consistent via reconciliation” model is what makes Kubernetes robust.
Every interaction goes through kube-apiserver. Understanding its pipeline helps with both development and operations.
Request Pipeline
Transport Security (TLS): All connections are encrypted.
Authentication: Client certs, bearer tokens, OIDC, or webhook auth.
Authorization: RBAC, ABAC, or webhook authorization decide if the action is allowed.
Admission Control:
Mutating admission webhooks and built-in mutators may modify the object (e.g., defaulting).
Validating admission webhooks and built-ins can reject noncompliant requests.
Persistence: The object is validated and stored in etcd via the API server’s storage layer.
Response: The API server returns status to the client.
You can explore the API with:
Access Control Example (RBAC)
Define a role that permits listing Pods in a namespace:
Admission Control in Practice
To enforce resource requests and limits for Pods in a namespace:
You can also use validating/mutating webhooks or tools like Gatekeeper to enforce more complex policies.
etcd is a distributed, strongly consistent key–value store. The API server stores Kubernetes objects as JSON in etcd, under paths like /registry/pods//.
Key characteristics:
Consistency and Quorum: Writes require a majority of etcd members to agree. A 3-node etcd cluster tolerates 1 failure; 5 nodes tolerate 2.
Compaction and Defragmentation: etcd stores revisions—over time, cleanup is necessary to maintain performance.
Snapshots: Periodic backups are essential for disaster recovery.
Operational tips:
Co-locate etcd with control plane nodes on fast SSDs/NVMe.
HorizontalPodAutoscaler controller: Scales based on metrics.
These controllers run inside kube-controller-manager (and cloud-controller-manager for cloud-specific controllers), each with leader election to prevent duplicate work.
You can see leader elections via Leases:
Interacting with the Control Plane
Configure kubeconfig for contexts, users, and clusters:
Verify health endpoints (often enabled by default):
API server: /livez, /readyz
Scheduler and controller-manager: /metrics, /healthz
Observability and Metrics
Scrape control plane metrics with Prometheus. Key signals:
Check for controllers spamming updates due to improper spec (e.g., changing defaulted fields every loop).
Component
Role in the Control Plane
Key Interfaces
kube-apiserver
AuthN/Z, admission, API, persistence
TLS, REST, webhooks, etcd client
etcd
Durable, consistent storage
gRPC between etcd members
kube-scheduler
Binds Pods to Nodes
Kubernetes API (watch/bind)
kube-controller-manager
Reconciliation loops for core controllers
Kubernetes API (watch/update)
cloud-controller-manager
Cloud resource integration
Cloud APIs, Kubernetes API
Note: kubelet and networking components are not part of the control plane, but they act on decisions the control plane makes.
Let’s tie the concepts together with an end-to-end example.
CI pushes an image and updates a Deployment manifest.
CD applies the manifest with kubectl or the Kubernetes API.
The API server authenticates the request via OIDC and authorizes via RBAC.
A mutating webhook injects a sidecar (e.g., for logging).
A validating webhook checks Pod security context; request passes.
The API server writes the Deployment to etcd.
The Deployment controller creates/updates a ReplicaSet; ReplicaSet creates Pods.
The scheduler picks nodes and binds Pods.
Kubelets pull images, start containers, and report status.
A Service routes traffic to the Pod IPs; kube-proxy or your CNI configures routing.
HPA scales replicas up during load; Deployment controller updates the ReplicaSet.
A failing node triggers the Node controller to mark NotReady; Pods get rescheduled.
You can watch parts of this in real time:
Keep the API server stateless; scale horizontally behind a highly available load balancer.
Use an odd number of etcd members; keep them dedicated and on the fastest disks you can.
Separate traffic planes if possible: client traffic vs control-plane-to-etcd traffic.
Lock down admission webhooks and ensure they are highly available; set failure policies carefully.
Leverage Pod Priority and preemption to ensure control plane and critical add-ons always have resources.
Keep version skew within supported limits and perform graceful, rolling upgrades.
Automate backups and practice recovery with game days.
Platforms like Sealos can streamline much of this: automate control plane node provisioning, TLS certificate management, and HA topologies; provide a web console to observe and manage clusters; and offer app catalogs to add observability and policy controllers with a click. If you’re building internal platforms, Sealos can help you bootstrap and operate robust control planes without starting from scratch. Learn more at https://sealos.io.
API Aggregation Layer: Extension APIs that register under your API server (e.g., metrics.k8s.io).
Custom Resource Definitions (CRDs) and Custom Controllers: Extend Kubernetes with your own types and reconciliation logic.
Server-Side Apply: Declarative field ownership and conflict detection for safer automation.
Admission Webhook Patterns: Idempotent mutations, versioned schemas, and performance strategies.
Scheduling Framework Plugins: Custom scoring/filters to tailor scheduling for niche workloads.
Multi-cluster Control Planes: Fleet management, cluster API (CAPI), and control plane per cluster vs shared control plane trade-offs.
Check which admission plugins are enabled:
Quickly view API discovery:
Find stuck webhooks:
Trace a pending Pod:
The Kubernetes control plane is both simple and profound. At its core are a handful of components—a front-door API server, a consistent store (etcd), a scheduler, and a set of controllers—that together implement a powerful closed-loop system. You declare desired state; the control plane makes it happen and keeps it that way.
Key takeaways:
kube-apiserver is the gatekeeper: it authenticates, authorizes, admits, and persists every change.
etcd is the single source of truth—healthy etcd equals a healthy cluster.
Controllers and the scheduler continuously reconcile and place workloads according to your policies.
Robust operations require HA design, careful upgrades, strong security, and observability.
Practical tooling—RBAC, LimitRanges, admission webhooks, quotas—help you encode org and security policies.
Platforms like Sealos can reduce the toil of provisioning and operating resilient control planes, letting your team focus on applications and policies.
With a mental model of the request flow, reconciliation loops, and the interplay among components, you can confidently build, scale, and secure your Kubernetes platforms. Whether you run the control plane yourself or through a managed solution, understanding it is the difference between hope-driven operations and engineering with intent.