Sam Perrin TIL Blog

Kubernetes - Metrics not available yet

July 30, 2019

Install metrics-server

git clone
cd metrics-server
kubectl apply -f deploy/1.8+/

If when running kubectl top node or kubectl top pod you get the error “metrics not available yet”

Edit the metrics-server deployment Under spec.contains add the following;

- command:
 - /metrics-server
 - --kubelet-insecure-tls
 - --kubelet-preferred-address-types=InternalIP

Exit the editor, the change will apply and recreate the pod.

kubectl top node and kubectl top pod should now work

Sam Perrin

Written by Sam Perrin who loves all things Automation related! You should follow him on Twitter