git clone https://github.com/kodekloudhub/kubernetes-metrics-server.git
kubectl create -f kubernetes-metrics-server/
这样,所有服务和组件均已正确安装,您可以运行:
kubectl top nodes
要么
kubectl top pods
Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)
原文:https://www.cnblogs.com/sxgaofeng/p/12059099.html