Unable able to see Pods CPU and Memory Utilization and graphs are missing Kubernetes dashboard

2.7k views Asked by At

K8s VERSION = v1.18.6

I have deployed the Kubernetes dashboard using the following command and added a privileged user with which I logged into the dashboard.

but not able to see Pods CPU and Memory Utilization graphs are missing Kubernetes dashboardenter image description here

2

There are 2 answers

1
Vijay Daswani On BEST ANSWER

The Kubernetes Metrics Server is an aggregator of resource usage data in your cluster, To deploy the Metrics Server

Deploy the Metrics Server with the following command:

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.3.6/components.yaml

Verify that the metrics-server deployment is running the desired number of pods with the following command.

kubectl get deployment metrics-server -n kube-system

Output

NAME             READY   UP-TO-DATE   AVAILABLE   AGE
metrics-server   1/1     1            1           6m

Also you can validate by below command:

kubectl top nodes

to see node cpu utilisation if it works, it should then come up in Dashboard as well.

0
Fritz Duchardt On

Resource usage metrics are only available for K8s clusters once Metrics Server has been installed.