-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metrics not available in Kubernetes 1.16 : kubectl top pods result in error #300
Comments
I face the same issue when I run |
Have you tried to use this: #278 (comment) |
Would you be able to provide more logs from metrics-server?
doesn't point to cause of problem, just the result. |
Very same problem here with 1.16 and metrics-server 0.3.6 1.8+. |
Very same problem here with 1.17 and metrics-server 0.3.6 1.8+.
it work for me. |
The following fixes the issue for 0.3.6 1.8+ with k8s v1.14.10
|
@petertsu works on 1.16... thank you |
@serathius fixed? |
No fix, apparently this is a wontfix issue. He closed all related issues. |
Closing per Kubernetes issue triage policy GitHub is not the right place for support requests. Explanation here: #425 |
Ok cool, create a new rule and close all "support issues". Sounds like a good idea to me! /s This is clearly a BUG with metrics-server. |
Major issues with metrics-server now, it's buggy and I'm looking to get off of it in my environments |
Thanks for your feedback. Sorry for closing this issue, but those policy are there for a reason (we were just not very good at respecting them). There are better ways to solve current problems with metrics server then trying to debug every cluster setup. This issue is good example of author abandoning it without giving any specifics. Without specifics on how to reproduce the issue it's impossible to find and fix bugs. Closing this issue doesn't mean that we should leave the problem unsolved. I think that most problems people encounter with metrics-server have solution hidden somewhere in closed issues. We should make this knowledge more accessible -> documentation. I will be looking for help with creating better documentation. Hope that you will help me making metrics-server easy to run for everyone. |
in my case am using kops in aws , and kubectl top pod getting fine, but metric-server log always given below error `
` .due to this error my auto-scaling not working. for resolving i have added below line in metric-server-deployent yml file , but its still getting issue, how to resolve.
|
@SHUFIL Even thou your problem looks similar, it can have totally different cause. |
adding
to the metric deployment yaml corrected this issue for me as well |
even if you close these support requests, there is a major issue, it doesn't work. |
Hey @tirelibirefe Configuring Metrics Server requires substantial knowledge about how Kubelet is configured in your cluster. For example All suggestions found it those issues help some cases, but applying them at random doesn't help. Some comments are up-voted just because they solve problems that appear more commonly or apply to popular K8s distributions like kops. I don't agree with approach where we post just random combinations of flags and ask users to hope that one of them will work for them. I tried to reach out to popular K8s distribution maintainers to work with them on testing configuration and creating instructions, but it's hard to cover all cases. For now I proposed an approach where if someone is really unable to configure MS they can fill out template https://raw.githubusercontent.com/kubernetes-sigs/metrics-server/master/.github/ISSUE_TEMPLATE/bug-report.md requiring to provide all information needed to debug the problem. With this I and other can really help and work with that person. Of course there could be a better way to solve it, I would be really interested in discussing it. About your issue #561 Please make sure that when requesting support you provide as much information as possible (obfuscating sensible information is ok) and working with people that try to help you. I know that it's frustrating if something doesn't work, but please remember that people trying to help you are usually using their own personal time. |
This worked for me on a ClusterAPI cluster with k8s v1.19 and Calico. |
1.19和metrics-server 0.3.6 1.8+的问题也差不多 top_pod.go:265] Metrics not available for pod |
I would love to see this bug fixed in the documentation or the code. |
Same problem here when using Minikube with When a pod restart, metrics become available for 2 minutes in |
Minikube addon for metrics-server is maintained by minikube. Please post issues related to addon on https://github.com/kubernetes/minikube |
hey, guys. i also miss this problem on docker(19.3.14) and k8s(v1.20.9). i find that is becouse my docker root dir is changed no default(/var/lib/docker) |
I get following error when running top pods:
W0813 11:23:15.605148 18433 top_pod.go:266] Metrics not available for pod default/metric-service-metrics-server-687d884796-5w6fm, age: 12h41m30.605128s
error: Metrics not available for pod default/metric-service-metrics-server-687d884796-5w6fm, age: 12h41m30.605128
The text was updated successfully, but these errors were encountered: