✦ For everyone, free.

Practical knowledge for real and everyday life

Home

3 Kubernetes Control Plane

The Kubernetes Control Plane manages cluster operations, ensuring consistency, security, and scalability across containerized workloads.

Kubernetes Control Plane is the collection of processes that manage the overall state of a Kubernetes cluster, making global decisions about scheduling, detecting and responding to cluster events, and maintaining the authoritative record of what the cluster should look like. It is the decision-making layer of Kubernetes, distinct from the worker nodes that carry out the actual execution of workloads.


Role Within the Cluster

Decisions, Not Execution

The control plane never runs application containers itself. Its job is purely coordination: accepting declarations of desired state, storing them durably, and driving the cluster toward that state through a set of continuously running control loops.

Single Source of Truth

Every decision the control plane makes is grounded in the state persisted in its data store, ensuring that even if individual control plane processes restart, they can resume operating consistently from the last known state.


Core Components

API Server

The API server is the only component that reads from and writes to the cluster's data store directly. It authenticates and authorizes every request, applies admission control policies, and validates object schemas before persisting changes, making it the security and consistency boundary for the entire cluster.

etcd

etcd stores every Kubernetes object as key-value data using a consistent, distributed protocol. Its consistency guarantees are what allow multiple control plane replicas to agree on cluster state without conflicting.

Scheduler

The scheduler is responsible for binding Pods to nodes. It continuously watches for Pods that have been created but not yet assigned to a node, evaluates the set of nodes against filtering and scoring criteria, and writes the binding decision back through the API server.

Controller Manager

The controller manager hosts many independent controllers, each watching a specific type of resource and driving it toward its desired state, such as ensuring that the number of running Pod replicas matches what was declared, or that node status objects reflect real node health.


Reconciliation Loops

Every controller in the control plane follows the same fundamental pattern: observe the current state, compare it to the desired state, and issue changes to close the gap.

action = reconcile ( desired state , observed state )

This loop runs indefinitely and independently for each resource type, meaning the control plane is not a single monolithic process but a set of cooperating, asynchronous loops converging on consistency.


High Availability of the Control Plane

Replication

In production environments, control plane components are run redundantly across multiple machines. The API server is typically stateless and can be load balanced across replicas, while etcd relies on distributed consensus to keep its replicas synchronized.

Leader Election

Because running multiple copies of a controller concurrently could cause conflicting actions, controllers and the scheduler use leader election, ensuring that only one active instance performs reconciliation at any given time while other replicas stand by ready to take over.


Control Plane Communication Diagram

API Server etcd Scheduler Controllers

Security Boundary

The control plane, and the API server in particular, is the primary security boundary of a Kubernetes cluster. All authentication mechanisms, role-based access control policies, and admission webhooks are enforced at this layer before any change is allowed to reach etcd or influence a worker node, making control plane hardening a central concern in production cluster design.

Content in this section