Most apps you use every day do not run on a single computer. They run on many machines at once. Keeping all of that organised by hand would be a full-time job in itself. A Kubernetes cluster is the system that does the organising.

Put simply, a Kubernetes cluster is a group of computers that work together as one platform for running containers. You tell the cluster what should be running and how many copies you want, and it places that work on its machines, watches it, and fixes it when something goes wrong.

First, what a container is

A container is a sealed package holding an application and everything it needs to run: the code, the libraries, the settings. Because the package carries its own surroundings with it, it behaves the same way on a developer’s laptop as it does on a machine in a data centre. A container does not care which machine it lands on, as long as the machine can run containers.

One machine can run many containers at once, each sealed off from the others. A website, its database, and the service that sends its emails might each live in their own container on the same machine. The trouble starts when there are more containers than one machine can hold, or when the work has to keep running even if a machine dies. That is where the cluster comes in.

What the cluster adds

A cluster takes a group of machines and manages them as a single pool. Instead of logging into one machine and starting a container yourself, you describe the outcome you want — this application, three copies of it, reachable from the internet — and the cluster makes it so. The machines in the pool are called nodes, and each node is an ordinary computer running containers, no different in kind from the server you might rent on its own.

A dark warehouse aisle with stacked shipping containers, one coral-red container glowing warmly among them
Containers are sealed packages — the cluster decides which machine each one lands on.

How the cluster decides where things run

The part of the cluster that makes placement decisions is called the scheduler. When you ask for a new container, the scheduler looks at the pool of nodes, checks how much processor and memory each one has free, and picks a home for it. It spreads the work out, and it avoids putting all copies of the same application on one node, so a single failure cannot take the whole application down.

The scheduler keeps working after the first placement, too. If a node fills up, new containers go elsewhere. If you ask for more copies because traffic has risen, the scheduler finds room for them. If you ask for fewer, it removes the extras. You change the number you want; the cluster works out where the change happens.

The control plane and the workers

A cluster is split into two kinds of parts. The control plane is the small set of machines that make decisions: it keeps the record of what should be running, receives your instructions, runs the scheduler, and watches the health of everything. The worker nodes are the machines that actually run the containers, each with a small agent on it that takes orders from the control plane, starts and stops containers, and reports back on how they are doing.

This split matters because the decisions and the work live in different places. The control plane can be kept small and carefully looked after, while workers can be added or removed as demand changes. Adding a node is a routine act — the new machine joins the pool, the scheduler starts using it, and the capacity of the whole system grows by one machine. The whole arrangement sits on the same kind of data centre infrastructure as any large computing setup: power, cooling, and fast networking.

When a machine fails, the cluster notices

Machines fail in ordinary ways. A hard drive wears out, a power supply gives up, a network cable is knocked loose during maintenance. In a cluster, that failure is an event the system is built to absorb, not a crisis that needs a person at a keyboard at three in the morning.

If a container stops, the worker’s agent restarts it. If a whole node goes dark, the control plane notices the silence, marks the node as unavailable, and the scheduler starts the missing containers on healthy nodes. The application may lose a copy for a minute, but the other copies keep answering, and the cluster brings the total back to the number you asked for. This is what teams mean when they say a cluster is self-healing: the system returns to the state you described, without waiting for someone to notice.

The same habit makes updates safer. To release a new version, the cluster replaces containers one at a time — starting a new copy, checking that it answers, and only then stopping an old one. Traffic keeps flowing throughout, and if the new version misbehaves, the cluster can roll the change back.

A dark desk at night with a single small coral-red glowing cube beside a closed laptop and a cup of coffee
The control plane watches the whole pool — the workers just run what they are told.

When a team actually needs one

A cluster earns its keep when the work it organises has outgrown a single machine or a single pair of hands. The signs are practical, not fashionable. Your application is really several services that need to be updated separately. Traffic rises and falls sharply, and you need more copies running at busy times and fewer at quiet ones. Deployments happen often, and a bad release needs to be undone quickly.

For a growing product, a cluster also draws a clean line between two jobs. Developers describe what should run, and the cluster handles where and how it runs. That separation is why infrastructure teams reach for Kubernetes: running many services across many machines becomes a repeatable process, not a set of habits held in one person’s head.

When a cluster is more than you need

None of this is free. A cluster is itself a system that needs looking after: the control plane needs updating, the nodes need patching, and someone has to understand it well enough to fix it when it behaves strangely.

So a small website or a single application with steady traffic is usually better off without one. A single server, or a managed hosting plan, will run it for less money and less attention, and there will be fewer moving parts to break. A cluster is the answer to a particular problem — many containers, across many machines, changing often — and buying it before you have that problem only adds work.

A dark server rack at night with a single coral-red cable running along one shelf, a softly lit doorway blurred in the background
One failure should not stop the whole system — the cluster moves the work elsewhere.

The idea, in one line

A Kubernetes cluster is a way of running containers across many machines as if they were one machine: you describe what should be running, and the cluster places it, watches it, heals it, and scales it. It is not magic. It is a practical answer to a practical problem — what to do when your software has grown past the point where one computer, looked after by hand, is enough.

Back to the journalDiscuss a project