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.
| Component | Layer | Responsibility |
|---|---|---|
| kube-apiserver | Control plane | Single entry point; validates and stores API objects |
| etcd | Control plane | Consistent storage of all cluster state |
| kube-scheduler | Control plane | Places unscheduled Pods on suitable nodes |
| kube-controller-manager | Control plane | Runs reconciliation loops such as ReplicaSet and node controllers |
| cloud-controller-manager | Control plane | Integrates load balancers, routes and volumes from a cloud provider |
| kubelet | Worker node | Starts containers and reports Pod and node status |
| kube-proxy or CNI dataplane | Worker node | Implements Service routing and Pod networking |
| Container runtime | Worker node | Runs containers through the Container Runtime Interface |
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.
| Model | Control plane operated by | Typical use | Main trade-off |
|---|---|---|---|
| Managed service | Cloud provider | Production workloads in a public cloud | Less control over versions and flags |
| Self-managed with kubeadm | Own team | On-premises or custom networking | Full upgrade and backup burden |
| Lightweight distribution | Own team | Edge sites and small environments | Reduced feature set or scale |
| Local development cluster | Developer workstation | Testing manifests and Helm charts | Not representative of production |
| Multi-cluster fleet | Platform team with tooling | Isolation, regions and compliance | Higher operational complexity |
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.
| Concept | Scope | Isolation strength | Typical purpose |
|---|---|---|---|
| Cluster | Whole control plane and all nodes | Strong; separate API and etcd | Environment, region or tenant boundary |
| Kubernetes namespace | Logical partition of API objects | Soft; relies on RBAC and policies | Team or application grouping |
| Kubernetes node | One virtual or physical machine | Kernel-level sharing among Pods | Capacity unit for scheduling |
| Pod | One or more co-located containers | Shared network and volumes | Smallest deployable workload |
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.
| Symptom | Likely cause | Remedy |
|---|---|---|
| Pods stay Pending | Insufficient requested CPU or memory | Add nodes or right-size requests |
| API requests time out | Slow etcd disk or overloaded API server | Use low-latency storage; reduce watch load |
| Repeated OOMKilled containers | Memory limits below real usage | Measure usage and raise limits |
| Cluster unusable after upgrade | Deprecated API versions in manifests | Scan manifests before upgrading |
| Lost quorum | Two of three etcd members down | Restore from snapshot; spread members across zones |
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.