Merge pull request #13367 from ddelange/patch-1

Update HPA docs
This commit is contained in:
Kubernetes Prow Robot 2022-03-17 04:43:20 -07:00 committed by GitHub
commit 47602beb59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -5,19 +5,20 @@ pods in a replication controller, deployment, or replica set based on observed
CPU utilization (or, with alpha support, on some other, application-provided CPU utilization (or, with alpha support, on some other, application-provided
metrics). metrics).
The current stable version, which only includes support for CPU autoscaling, can The HorizontalPodAutscaler `autoscaling/v2` stable API moved to GA in 1.23.
be found in the `autoscaling/v1` API version. The alpha version, which includes The previous stable version, which only includes support for CPU autoscaling, can
be found in the `autoscaling/v1` API version. The beta version, which includes
support for scaling on memory and custom metrics, can be found in support for scaling on memory and custom metrics, can be found in
`autoscaling/v2beta1` (and `autoscaling/v2beta2` in 1.12 and later). `autoscaling/v2beta1` in 1.8 - 1.24 (and `autoscaling/v2beta2` in 1.12 - 1.25).
kOps can assist in setting up HPA. Relevant reading you will need to go through: kOps sets up HPA out of the box. Relevant reading to go through:
* [Extending the Kubernetes API with the aggregation layer][k8s-extend-api] * [Extending the Kubernetes API with the aggregation layer][k8s-extend-api]
* [Configure The Aggregation Layer][k8s-aggregation-layer] * [Configure The Aggregation Layer][k8s-aggregation-layer]
* [Horizontal Pod Autoscaling][k8s-hpa] * [Horizontal Pod Autoscaling][k8s-hpa]
While the above links go into details on how Kubernetes needs to be configured While the above links go into details on how Kubernetes needs to be configured
to work with HPA, a lot of that work is already done for you by kOps. to work with HPA, the work is already done for you by kOps.
Specifically: Specifically:
* [x] Enable the [Aggregation Layer][k8s-aggregation-layer] via the following * [x] Enable the [Aggregation Layer][k8s-aggregation-layer] via the following
@ -31,7 +32,6 @@ Specifically:
* [x] `--proxy-client-key-file=<path to aggregator proxy key>` * [x] `--proxy-client-key-file=<path to aggregator proxy key>`
* [x] Enable [Horizontal Pod Scaling][k8s-hpa] ... set the appropriate flags for * [x] Enable [Horizontal Pod Scaling][k8s-hpa] ... set the appropriate flags for
`kube-controller-manager`: `kube-controller-manager`:
* [x] `--horizontal-pod-autoscaler-use-rest-clients` should be true.
* [x] `--kubeconfig <path-to-kubeconfig>` * [x] `--kubeconfig <path-to-kubeconfig>`
## Cluster Configuration ## Cluster Configuration