k8s HPA里面的cpu是通过什么来获取
Kubernetes HPA (Horizontal Pod Autoscaler) uses the CPU utilization metrics of the running pods to determine whether to scale up or down. These metrics are obtained through the Kubernetes Metrics API, which collects and exposes the resource utilization data of the pods. The Metrics API retrieves this data from the kubelet, which is responsible for monitoring and reporting the resource usage of the pods on each node. The CPU utilization metric is measured as a percentage of the CPU resources allocated to the pod, and the HPA uses this metric to dynamically adjust the number of replicas of the pod to meet the desired resource utilization target
原文地址: https://www.cveoy.top/t/topic/hmHm 著作权归作者所有。请勿转载和采集!