8: Scaling the app

In this chapter, you’ll scale the app up and down. The methods you’ll learn are manual and require a human to implement them. In the real world, you’ll use a Horizontal Pod Autoscaler (HPA) to make scaling automatic. These are beyond the scope of a quick start book, but the things you’ll learn here will be extremely valuable.

However, Kubernetes also has objects that enable automatic scaling, but they’re beyond the scope of a quick start book.

We’ve split the chapter as follows.

  • Pre-requisites
  • Scale an application up
  • Scale an application down
  • The role of labels
  • Declarative vs imperative

Pre-requisites

If you’ve been following along, you’ll already have a single Deployment managing five replicas of the app you containerized ...

Get Quick Start Kubernetes - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.