May 2018
Intermediate to advanced
554 pages
13h 51m
English
An HPA queries the source of metrics periodically and determines whether scaling is required by a controller based on the metrics it gets. There are two types of metrics that could be fetched; one is from Heapster (https://github.com/kubernetes/heapster), another is from RESTful client access. In the following example, we'll show you how to use Heapster to monitor Pods and expose the metrics to an HPA.
First, Heapster has to be deployed in the cluster:
// at the time we're writing this book, the latest ...