vagrant-kubeadm-kubernetes icon indicating copy to clipboard operation
vagrant-kubeadm-kubernetes copied to clipboard

kubectl top Command Not Working After Setting Up Kubeadm Cluster

Open aswin-vijayan opened this issue 1 year ago • 0 comments
trafficstars

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.

aswin-vijayan avatar Sep 11 '24 04:09 aswin-vijayan