Kubernetes Horizontal Pod Autoscaler: Difference between revisions
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
=HPA Manifest= | =HPA Manifest= | ||
{{Internal|Kubernetes Horizontal Pod Autoscaler Manifest|Horizontal Pod Autoscaler Manifest}} | {{Internal|Kubernetes Horizontal Pod Autoscaler Manifest|Horizontal Pod Autoscaler Manifest}} | ||
=Playground= | |||
{{External|https://github.com/ovidiuf/playground/tree/master/kubernetes/horizontal-pod-autoscaler}} | |||
=Operations= | =Operations= | ||
* [[Horizontal_Pod_Autoscaler_Operations#Create_an_Autoscaler|Create an autoscaler.]] | * [[Horizontal_Pod_Autoscaler_Operations#Create_an_Autoscaler|Create an autoscaler.]] |
Revision as of 22:47, 6 October 2020
External
- https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
- https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/
- https://towardsdatascience.com/kubernetes-hpa-with-custom-metrics-from-prometheus-9ffc201991e
- https://github.com/kubernetes/community/blob/master/contributors/design-proposals/instrumentation/custom-metrics-api.md
Internal
Overview
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).