Skip to content
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

kubectl top Command Not Working After Setting Up Kubeadm Cluster #76

Open
aswin-vijayan opened this issue Sep 11, 2024 · 0 comments
Open

Comments

@aswin-vijayan
Copy link

aswin-vijayan commented Sep 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant