Kubernetes Horizontal Custom Metrics Autoscaling Walkthrough

From NovaOrdis Knowledge Base
Revision as of 07:02, 16 October 2020 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

Internal

Process

Install Prometheus as described here:

Prometheus Installation with Helm

Install Prometheus Pushgateway and configure it as a Prometheus target with a Prometheus Operator ServiceMonitor as described here:

Prometheus Pushgateway Installation

Prometheus Pushgateway will be used to manually or programmatically publish custom metrics with a CLI script similar to publish-metric.

Install Prometheus Adapter for Kubernetes Metrics API as described here:

Prometheus Adapter for Kubernetes Metrics APIs Helm Installation

At the end of this step, custom metrics should be available at the Custom Metric API endpoint and the Horizontal Pod Autoscaler should be able to use them in scaling decisions.