-
Notifications
You must be signed in to change notification settings - Fork 4.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
Error "Metrics not available for pod" while checking the metrics of Pods using "metrics-server" add-on #13969
Comments
Hi @meliwex, thanks for reporting your issue with minikube! This is a known issue which has since been fixed but hasn't been released yet. Try deleting your instances |
|
Thanks @spowelljr , |
Hi @oprudkyi, for me simply deleting the cluster and starting the cluster again doesn't solve the issue.
|
@meliwex sorry, I meant after stopping to start it like
also, please note it increase cpu load and result in some unstable work, on i5 some heavy pods started to restart and freeze etc |
This some kind solved the issue but not completely. The output I truncated a little bit for simplicity:
Is there any solution? |
This worked perfectly. Thank you!! |
Hi @karinagrullon and @avizen-j, for your own created Pods, does it display the metrics? |
@avizen-j, @karinagrullon
Same error I get when I use minikube Do you know what can cause this? |
@meliwex Do you disable metrics-server add-on when applying the official manifest? Also, do you do these fixes on the official Kubernetes manifest? This is how the official metrics-server.yaml file looks for me (Deployment.spec):
|
I noticed a new thing that the metrics are shown for some of the Pods but not for all. I guess it depends on the image.
|
Oh wow, that's interesting. Yes, It seems to be related to the image in this case. Maybe try to play around about the way the image you are trying to extract metrics from is built. Wish I knew what is really going on here... |
@karinagrullon |
I had the same issue but It was solved with |
for my case i don't need to delete the minikube, just doing |
Does anyone have a problem with
I use official metrics-server manifest with these arguments:
I also did some research and tried to add other arguments but they don't help. |
After some investigation, I solved this, but the solution is not perfect. I started using I truncated little bit the output for simplicity:
Notes: I don't want to close the issue, because maybe someone can find the solution for |
@meliwex can you show your pod logs or just do |
@Al4DIN
|
@meliwex It looks like everything is working, do you have the same issue with other pods (like you can just create another ones with other images) ? |
@Al4DIN |
Just as a heads up, we released 1.26.0-beta.0 on Friday and that will return minikube to running In the case you do want to disable the metrics for improved CPU usage you can pass the |
Hi @meliwex, have you had a chance to review the latest release per the above comment, and if so, did this help resolve the issue? |
Hi @meliwex – is this issue still occurring? Are additional details available? If so, please feel free to re-open the issue by commenting with Additional information that may be helpful:
Thank you for sharing your experience! |
Hello @klaases, sorry for being late
I tested
These are the results:
As you can see there is a problem with The exact minikube start command used: My environment: AWS EC2 with OS Ubuntu 20.04 Note: I don't want to re-open this issue because everything works correctly with the current stable release( |
What Happened?
After enabling
metrics-server
add-on usingminikube addons enable metrics-server
command I tried to check the metrics of the Pods inkube-system
namespace or just of the Pods that I created manually indefault
namespace.This is what I got:
The
metrics-server
is running:My environment:
Output of
minikube version
:minikube version: v1.25.2
Output of
kubectl version
:I am using VirtualBox Virtual Machine with OS Ubuntu Server 20.04 LTS.
Notes:
I got also the same error in AWS EC2 instance with the same OS.
Using kind I didn't have any problem with metrics-server, everything worked well. I guess the problem is related to minikube.
Attach the log file
log.txt
Output of:
kubectl logs metrics-server-6b76bd68b6-6tk7p -n kube-system
Operating System
Ubuntu
Driver
Docker
The text was updated successfully, but these errors were encountered: