企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] 参考:[https://blog.csdn.net/tangwei0928/article/details/94591318](https://blog.csdn.net/tangwei0928/article/details/94591318) ## 概述 由于官方已经弃用heapster,现metrics-server作为其替代方案,当前最新版本为v0.3.3 ## 安装metrics 克隆 ``` $ git clone https://github.com/kubernetes-incubator/metrics-server ``` yaml文件在`/root/metrics-server/deploy/1.8+` ``` [root@master01 ~]# cd metrics-server/deploy/1.8+/ [root@master01 1.8+]# ls aggregated-metrics-reader.yaml auth-delegator.yaml auth-reader.yaml metrics-apiservice.yaml metrics-server-deployment.yaml metrics-server-service.yaml resource-reader.yaml ``` 修改yaml文件,添加参数 ``` vim metrics-server-deployment.yaml - name: metrics-server image: k8s.gcr.io/metrics-server-amd64:v0.3.3 imagePullPolicy: IfNotPresent args: - --kubelet-preferred-address-types=InternalIP,Hostname,InternalDNS,ExternalDNS,ExternalIP - --kubelet-insecure-tls ``` Metrics镜像 ``` k8s.gcr.io/metrics-server-amd64:v0.3.3 ``` 未完待续