Kubernetes Horizontal Pod Autoscaler

From NovaOrdis Knowledge Base
Revision as of 02:48, 7 October 2020 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

External

Internal

Overview

Horizontal pod autoscaling is the automatic increase or decrease the number of pod replicas managed by a scalable higher-level controller. The scaling is performed by a horizontal controller and it is controlled by a horizontal pod autoscaler Kubernetes API resource.

A pre-requisite, if we intend the autoscaler to monitor resource metrics, a source of resource metrics must be deployed. The simplest source of resource metrics is the metrics server.

The horizontal pod autoscalers works with a previously deployed higher level controller that supports scaling (deployments, replica sets, stateful sets).

HPA Manifest

Horizontal Pod Autoscaler Manifest

Playground

https://github.com/ovidiuf/playground/tree/master/kubernetes/horizontal-pod-autoscaler

Operations