Why doesn't the Kubernetes dashboard display utilization graphs?
When you access the Kubernetes dashboard, utilization graphs don't display.
Sometimes after a cluster update or worker node reboot, the kubernetes-dashboard pod does not update, or the metrics-server is not running properly.
Follow these steps to resolve the issue:
- Verify that the
metrics-serveris running in your cluster.kubectl get deployment metrics-server -n kube-system - If the
metrics-serveris not running or is in a failed state, check the pod logs.kubectl logs -n kube-system -l k8s-app=metrics-server - Delete the
kubernetes-dashboardpod to force a restart. The pod is re-created with RBAC policies to access themetrics-serverfor utilization information.kubectl delete pod -n kube-system $(kubectl get pod -n kube-system --selector=k8s-app=kubernetes-dashboard -o jsonpath='{.items..metadata.name}') - If the issue persists, restart the
metrics-serverdeployment.kubectl rollout restart deployment metrics-server -n kube-system