Skip to content

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

@aswin-vijayan

Description

@aswin-vijayan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions