You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently set up a new Kubeadm cluster using scripts from this repository. After the setup, when I try to use the kubectl top command to view resource usage, it didn't work.
And I have checked the metrics-server pod it was running properly. But the kubectl top command was not working.
Solution:
To resolve this, I restarted the metrics-server, and the kubectl top command began working perfectly.
Run the following command to restart the metrics-server pod
Issue
I recently set up a new Kubeadm cluster using scripts from this repository. After the setup, when I try to use the
kubectl top
command to view resource usage, it didn't work.And I have checked the metrics-server pod it was running properly. But the
kubectl top
command was not working.Solution:
To resolve this, I restarted the metrics-server, and the
kubectl top
command began working perfectly.Run the following command to restart the metrics-server pod
kubectl rollout restart deploy metrics-server -n kube-system
Note:
If you encounter an issue where
kubectl top
is not working, try restarting the metrics-server.The text was updated successfully, but these errors were encountered: