k8s报错:Error from server (NotFound): the server could not find the requested resource (get services h

问题:
k8s 1.11版本

root@master:~/pods/14# kubectl top pod  nginx-app
Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)

解决方法:

git clone https://github.com/kodekloudhub/kubernetes-metrics-server.git
kubectl create -f kubernetes-metrics-server/

你可能感兴趣的:(kubernetes)