liveBook · Manning

Scalability

As explained in Kubernetes in Action, Second Edition

Horizontal scaling is the addition or removal of application instances to adjust capacity to changing workload levels.

Horizontal scaling adjusts application capacity by adding or removing application instances as workload changes. Kubernetes replicates the application so developers do not manually install, configure, or run each copy. section 1.2.1 section 3.3.3

Kubernetes scales Pods, not individual containers. A Deployment maintains the desired number of Pods, while a Service provides one stable address and distributes requests across the available replicas. section 3.4 section 5.7

Scale a Deployment to three replicas

Run `kubectl scale deployment kiada --replicas=3`. Kubernetes creates the additional Pods; `kubectl get deploy` can then show `3/3` ready replicas. Requests sent to the Service reach different Pods in varying order, demonstrating internal load balancing.

Scaling remains the application's responsibility: Kubernetes makes replication easy but cannot make an application scalable by itself. Separating frontend and backend workloads into different Pods allows each part to scale independently. section 3.3.3 section 5.7

How Kubernetes in Action, Second Edition covers it

How deep it goes
Explains replica commands, Deployment state, Pod units, Service routing, and application constraints; defers advanced scaling mechanisms.
Examples
Demonstrates `kubectl scale`, three ready replicas, Pod placement, and Service requests reaching different application instances.
What it assumes
Assumes an application deployed through Kubernetes and requires that the application itself support horizontal scaling.
What you can do after
Operate/configure a Kubernetes Deployment with `kubectl scale` and verify replica readiness and Service-level request distribution.
How it connects
Connects horizontal scaling with Kubernetes, Deployments, Pods, Services, load balancing, containers, microservices, and vertical scaling.

Also explained in

Compare how 27 books explain scalability →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kubernetes in Action, Second Edition. The section links point to the parts of the book it draws on.