According to readme in heapster repo, the project is now deprecated. The current recommended solution is to use the metrics server which acorrding to documentation can be accessed by using kubectl top
. I have deployed it on my bare-metal CentOs machine. Unfortunately it seems it does not work out of the box:
bash-4.2$ kubectl get pod metrics-server-bb9ffc6b8-7c25g -n=kube-system
NAME READY STATUS RESTARTS AGE
metrics-server-bb9ffc6b8-7c25g 1/1 Running 0 9h
bash-4.2$ kubectl top pods
Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)
bash-4.2$
It seems like it still tries to access heapster and it is not compatible with metrics server. Do I need to perform additional setup to make it work?
I'm using kubectl and kubelet v1.9.3.
EDIT: After I've deployed heapster, I can see usage charts on dashboard. So it seems like eve if it is officially deprecated, it works as expected.