You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -131,7 +131,8 @@ Kubernetes 将水平 Pod 自动扩缩实现为一个间歇运行的控制回路
131
131
Once during each period, the controller manager queries the resource utilization against the
132
132
metrics specified in each HorizontalPodAutoscaler definition. The controller manager
133
133
finds the target resource defined by the `scaleTargetRef`,
134
-
then selects the pods based on the target resource's `.spec.selector` labels, and obtains the metrics from either the resource metrics API (for per-pod resource metrics),
134
+
then selects the pods based on the target resource's `.spec.selector` labels,
135
+
and obtains the metrics from either the resource metrics API (for per-pod resource metrics),
135
136
or the custom metrics API (for all other metrics).
Finally, right before HPA scales the target, the scale recommendation is recorded. The
364
367
controller considers all recommendations within a configurable window choosing the
365
-
highest recommendation from within that window. This value can be configured using the `--horizontal-pod-autoscaler-downscale-stabilization` flag, which defaults to 5 minutes.
368
+
highest recommendation from within that window. This value can be configured using the
369
+
`--horizontal-pod-autoscaler-downscale-stabilization` flag, which defaults to 5 minutes.
366
370
This means that scaledowns will occur gradually, smoothing out the impact of rapidly
367
371
fluctuating metric values.
368
372
-->
@@ -439,7 +443,7 @@ replicas, the StatefulSet directly manages its set of Pods (there is no intermed
By default, the HorizontalPodAutoscaler controller retrieves metrics from a series of APIs. In order for it to access these
618
-
APIs, cluster administrators must ensure that:
621
+
By default, the HorizontalPodAutoscaler controller retrieves metrics from a series of APIs.
622
+
In order for it to access these APIs, cluster administrators must ensure that:
619
623
-->
620
624
## 对 Metrics API 的支持 {#support-for-metrics-apis}
621
625
@@ -627,26 +631,31 @@ APIs, cluster administrators must ensure that:
627
631
628
632
* The corresponding APIs are registered:
629
633
630
-
* For resource metrics, this is the `metrics.k8s.io` API, generally provided by [metrics-server](https://github.com/kubernetes-sigs/metrics-server).
631
-
It can be launched as a cluster add-on.
634
+
* For resource metrics, this is the `metrics.k8s.io` [API](/docs/reference/external-api/metrics.v1beta1/),
635
+
generally provided by [metrics-server](https://github.com/kubernetes-sigs/metrics-server).
636
+
It can be launched as a cluster add-on.
632
637
633
-
* For custom metrics, this is the `custom.metrics.k8s.io` API. It's provided by "adapter" API servers provided by metrics solution vendors.
634
-
Check with your metrics pipeline to see if there is a Kubernetes metrics adapter available.
638
+
* For custom metrics, this is the `custom.metrics.k8s.io` [API](/docs/reference/external-api/metrics.v1beta1/).
639
+
It's provided by "adapter" API servers provided by metrics solution vendors.
640
+
Check with your metrics pipeline to see if there is a Kubernetes metrics adapter available.
635
641
636
-
* For external metrics, this is the `external.metrics.k8s.io` API. It may be provided by the custom metrics adapters provided above.
642
+
* For external metrics, this is the `external.metrics.k8s.io` [API](/docs/reference/external-api/metrics.v1beta1/).
643
+
It may be provided by the custom metrics adapters provided above.
For examples of how to use them see [the walkthrough for using custom metrics](/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics)
672
+
For examples of how to use them see
673
+
[the walkthrough for using custom metrics](/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics)
664
674
and [the walkthrough for using external metrics](/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects).
665
675
-->
666
676
关于如何使用它们的示例,
@@ -696,7 +706,7 @@ the replica count for a scaling target. Scaling policies also let you control th
0 commit comments