By johnwook
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!
Accepted Answer
to whom it may concern, DO team would release new DO version to resolve the issue (yay!)
link: https://github.com/digitalocean/DOKS/issues/2#issuecomment-721544306
there are more people suffers from … https://github.com/digitalocean/DOKS/issues/2
I ran into a similar issue on DOKS 1.20.2. I was deploying using the bitnami metrics server helm chart. I had to set the command arg kubelet-preferred-address-types=InternalIP
and apiService.create=true
because the api-service isn’t created already by DO.
For reference: https://github.com/bitnami/charts/tree/master/bitnami/metrics-server#parameters
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.