I spent about 3 days with this issue :(
No matter what I try to install metrics-server on my cluster, I can’t see CPU/memory usage of my pods. CPU/memory usage of my nodes is fine, but pods.
metric-server log says follwing (for every deployed pods)
1 reststorage.go:160] unable to fetch pod metrics for pod, ...: no metrics known for pod
My cluster runs
kubectl top nodes shows
NAME CPU(cores) CPU% MEMORY(bytes) MEMORY% pool-mypoolinfoblahb 130m 6% 1323Mi 42% pool-mypoolinfoblahb 79m 3% 806Mi 25%
kubectl top pods shows
W1103 16:56:02.901596 25473 top_pod.go:265] Metrics not available for pod default/my-pod-info-blahblah, age: 8m1.901588s error: Metrics not available for pod default/my-pod-info-blahblah, age: 8m1.901588s
Somebody please help me
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.