kubectl top Command Not Working After Setting Up Kubeadm Cluster
Opened this issue · 0 comments
aswin-vijayan commented
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.