In this section, we will perform application and cluster scaling tasks. You will learn how to manually and also automatically scale your service capacity up or down in Kubernetes to support dynamic traffic.
Clone the k8sdevopscookbook/src repository to your workstation to use the manifest files in the chapter7 directory, as follows:
$ git clone https://github.com/k8sdevopscookbook/src.git
$ cd /src/chapter7/
Make sure you have a Kubernetes cluster ready and kubectl and helm configured to manage the cluster resources.
How to do it…
This section is further divided into the following subsections to make this process easier:
- Validating the installation of Metrics Server
- Manually scaling an application
- Autoscaling applications using Horizontal Pod Autoscaler
Validating the installation of Metrics Server
The Autoscaling applications using the Horizontal Pod Autoscaler recipe in this section also requires Metrics Server to be installed...