19.06.2021 Views

148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 13 ■ Using Autoscaling

Figure 13-16. Invoking a service in a loop

List the horizontal pod autoscaler:

./kubectl get hpa

The CURRENT column value has become 224%, which indicates an increased load on the deployment,

as shown in Figure 13-17. The CPU utilization is above the target CPU utilization.

Figure 13-17. Current CPU utilization above the target

The number of pods is still 3 because it takes a while for the number of pods to increase and the cluster

to stabilize, as shown in Figure 13-18.

Figure 13-18. The number of pods is still 3 as it takes a while for the cluster to stabilize

when load is increased

List the deployment after a few more seconds, and the number of pods has increased to 5 as shown in

Figure 13-19. The autoscaler has scaled up the cluster by increasing the number of pods.

307

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!