在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):kubernetes-sigs/metrics-server开源软件地址(OpenSource Url):https://github.com/kubernetes-sigs/metrics-server开源编程语言(OpenSource Language):Go 94.5%开源软件介绍(OpenSource Introduction):Kubernetes Metrics ServerMetrics Server is a scalable, efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines. Metrics Server collects resource metrics from Kubelets and exposes them in Kubernetes apiserver through Metrics API
for use by Horizontal Pod Autoscaler and Vertical Pod Autoscaler. Metrics API can also be accessed by Metrics Server is not meant for non-autoscaling purposes. For example, don't use it to forward metrics to monitoring solutions, or as a source of monitoring solution metrics. In such cases please collect metrics from Kubelet Metrics Server offers:
Use casesYou can use Metrics Server for:
Don't use Metrics Server when you need:
For unsupported use cases, check out full monitoring solutions like Prometheus. RequirementsMetrics Server has specific requirements for cluster and network configuration. These requirements aren't the default for all cluster distributions. Please ensure that your cluster distribution supports these requirements before using Metrics Server:
InstallationMetrics Server can be installed either directly from YAML manifest or via the official Helm chart. To install the latest Metrics Server release from the components.yaml manifest, run the following command. kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml Installation instructions for previous releases can be found in Metrics Server releases. Compatibility Matrix
*Kubernetes versions lower than v1.16 require passing the High AvailabilityMetrics Server can be installed in high availability mode directly from a YAML manifest or via the official Helm chart by setting the kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/high-availability.yaml Note that this configuration requires having a cluster with at least 2 nodes on which Metrics Server can be scheduled. Also, to maximize the efficiency of this highly available configuration, it is recommended to add the Helm ChartThe Helm chart is maintained as an additional component within this repo and released into a chart repository backed on the Security contextMetrics Server requires the ScalingStarting from v0.5.0 Metrics Server comes with default resource requests that should guarantee good performance for most cluster configurations up to 100 nodes:
Metrics Server resource usage depends on multiple independent dimensions, creating a Scalability Envelope. Default Metrics Server configuration should work in clusters that don't exceed any of the thresholds listed below:
Resources can be adjusted proportionally based on number of nodes in the cluster. For clusters of more than 100 nodes, allocate additionally:
You can use the same approach to lower resource requests, but there is a boundary where this may impact other scalability dimensions like maximum number of pods per node. ConfigurationDepending on your cluster setup, you may also need to change flags passed to the Metrics Server container. Most useful flags:
You can get a full list of Metrics Server configuration flags by running: docker run --rm k8s.gcr.io/metrics-server/metrics-server:v0.6.0 --help DesignMetrics Server is a component in the core metrics pipeline described in Kubernetes monitoring architecture. For more information, see: Have a question?Before posting an issue, first checkout Frequently Asked Questions and Known Issues. Community, discussion, contribution, and supportLearn how to engage with the Kubernetes community on the community page. You can reach the maintainers of this project at: This project is maintained by SIG Instrumentation Code of conductParticipation in the Kubernetes community is governed by the Kubernetes Code of Conduct. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论