Kubernetes cluster

Also known as: control plane

On this page 8

A Kubernetes cluster is a group of machines, called nodes, that is managed by a control plane and runs containerized workloads as one logical computer. In the Cloud subject and the Kubernetes topic, the cluster is the basic unit of operation: every Pod, Deployment, Service and namespace lives inside exactly one cluster, and the control plane continuously works to make the actual state match the declared desired state.

Engineers describe what they want in declarative manifests, submit them to the Kubernetes API, and let the cluster decide where containers run, how they are restarted after failures and how traffic reaches them. This model separates application intent from infrastructure detail, which is why clusters became the standard platform for cloud-native systems.

How a Kubernetes cluster is organized

A Kubernetes cluster consists of two layers: a control plane that makes decisions and a set of worker nodes that run workloads. The control plane exposes the API, stores cluster state and runs control loops, while each worker node hosts Pods and reports its health back to the control plane.

Every interaction passes through the API server, which validates requests, applies authentication and admission rules, and persists objects in etcd, a strongly consistent key-value store. Controllers watch the API for changes and act on them, and the scheduler assigns new Pods to nodes that satisfy their resource requests and constraints.

The following table lists the core components and the role each plays in the cluster.

ComponentLayerResponsibility
kube-apiserverControl planeSingle entry point; validates and stores API objects
etcdControl planeConsistent storage of all cluster state
kube-schedulerControl planePlaces unscheduled Pods on suitable nodes
kube-controller-managerControl planeRuns reconciliation loops such as ReplicaSet and node controllers
cloud-controller-managerControl planeIntegrates load balancers, routes and volumes from a cloud provider
kubeletWorker nodeStarts containers and reports Pod and node status
kube-proxy or CNI dataplaneWorker nodeImplements Service routing and Pod networking
Container runtimeWorker nodeRuns containers through the Container Runtime Interface
Core components of a Kubernetes cluster

The reconciliation model behind cluster behavior

A cluster behaves predictably because of level-based reconciliation: each controller repeatedly compares the desired state stored in the API with the observed state and takes the smallest action that closes the gap. If a node fails, the node controller marks it unreachable, Pods are evicted after a timeout, and the ReplicaSet controller creates replacements elsewhere.

This design makes the cluster self-healing but eventually consistent. Changes are not instantaneous; they propagate through watches, queues and retries. Operators should therefore reason in terms of convergence time rather than immediate effect, and they should expect brief windows in which actual and desired state differ.

Clusters also enforce resource accounting. Each container can declare requests, which the scheduler uses for placement, and limits, which the kubelet and kernel enforce. Exceeding a memory limit triggers an out-of-memory kill, while exceeding a CPU limit causes throttling.

Cluster topologies and deployment options

Clusters differ mainly in who operates the control plane and how resilient it is. A production control plane normally runs three or five etcd members, because etcd needs a majority quorum; three members tolerate one failure, five tolerate two.

The table below compares common ways to obtain a cluster and the trade-offs each involves.

ModelControl plane operated byTypical useMain trade-off
Managed serviceCloud providerProduction workloads in a public cloudLess control over versions and flags
Self-managed with kubeadmOwn teamOn-premises or custom networkingFull upgrade and backup burden
Lightweight distributionOwn teamEdge sites and small environmentsReduced feature set or scale
Local development clusterDeveloper workstationTesting manifests and Helm chartsNot representative of production
Multi-cluster fleetPlatform team with toolingIsolation, regions and complianceHigher operational complexity
Common Kubernetes cluster deployment models

Managed offerings such as Amazon EKS and Google Kubernetes Engine run the control plane for the customer and typically charge a fixed hourly fee per cluster plus node costs. They simplify upgrades but still leave node maintenance, workload security and add-on management to the user.

How a cluster relates to nodes, namespaces and Pods

The cluster is the outermost boundary of scheduling, identity and API access, while nodes, namespaces and Pods are subdivisions inside it. Confusing these levels leads to poor isolation decisions, for example treating a namespace as a security boundary equal to a separate cluster.

ConceptScopeIsolation strengthTypical purpose
ClusterWhole control plane and all nodesStrong; separate API and etcdEnvironment, region or tenant boundary
Kubernetes namespaceLogical partition of API objectsSoft; relies on RBAC and policiesTeam or application grouping
Kubernetes nodeOne virtual or physical machineKernel-level sharing among PodsCapacity unit for scheduling
PodOne or more co-located containersShared network and volumesSmallest deployable workload
Scope of a cluster compared with related concepts

Because all namespaces share one API server, one etcd and often the same nodes, hard multi-tenancy usually requires separate clusters or additional sandboxing such as dedicated node pools and strict network policies.

Operating and sizing a cluster

Running a cluster well depends on capacity planning, upgrades and observability. Upstream Kubernetes ships a minor release roughly every four months and supports each one for about fourteen months, so teams must plan regular version upgrades rather than treating the cluster as static infrastructure.

  • Autoscaling at two levels: the Horizontal Pod Autoscaler adds Pods, while a cluster autoscaler or node provisioner adds nodes when Pods cannot be scheduled.
  • Backups of etcd and of manifests in version control allow recovery after control plane loss.
  • Role-based access control limits who can change which objects; cluster-admin rights should be rare.
  • Monitoring of the control plane, including API latency and etcd disk performance, detects degradation early.

Tested upstream limits are about 5,000 nodes and 150,000 Pods per cluster, but most organizations hit practical limits earlier because of etcd size, network address space or blast-radius concerns. Many therefore prefer several medium-sized clusters over one very large cluster.

Common cluster failure modes and mistakes

Most cluster incidents stem from configuration and capacity errors rather than defects in Kubernetes itself. The table maps frequent symptoms to causes and fixes.

SymptomLikely causeRemedy
Pods stay PendingInsufficient requested CPU or memoryAdd nodes or right-size requests
API requests time outSlow etcd disk or overloaded API serverUse low-latency storage; reduce watch load
Repeated OOMKilled containersMemory limits below real usageMeasure usage and raise limits
Cluster unusable after upgradeDeprecated API versions in manifestsScan manifests before upgrading
Lost quorumTwo of three etcd members downRestore from snapshot; spread members across zones
Symptoms, causes and remedies in cluster operations

A further mistake is running workloads without requests and limits, which lets a single noisy application starve neighbors and makes scheduling decisions unreliable.

A non-technical view

Think of a Kubernetes cluster as a well-run warehouse with a manager. The shelves and workers are the machines that do the actual work. The manager keeps a written list of what should be in stock and constantly checks the shelves against that list.

If a shelf collapses, the manager moves the goods to another shelf without being asked. Staff only update the list; they do not move boxes by hand. That is the key idea of a cluster: people describe the result they want, and the system keeps working until reality matches it.

A concrete example

An online retailer runs its storefront on a managed cluster with a highly available control plane across three availability zones and twelve worker nodes. The shop consists of about forty microservices, each deployed with a Deployment, a Service and resource requests based on load tests.

During a seasonal sale, traffic triples within an hour. The Horizontal Pod Autoscaler raises the checkout service from 6 to 24 Pods, and the cluster autoscaler adds eight nodes when new Pods become Pending. When one zone suffers a network outage, the scheduler recreates the affected Pods in the remaining zones within a few minutes.

The outcome is uninterrupted checkout during peak demand, followed by automatic scale-down overnight, which returns node count and cost to normal levels without manual intervention.