The deployjent yaml typically does not work out of the box. Fix deploy/1.8+/metrics-server-deployment.yaml
as follows:
containers:
- name: metrics-server
image: k8s.gcr.io/metrics-server-amd64:v0.3.6
args:
- --cert-dir=/tmp
- --secure-port=4443
- --kubelet-insecure-tls
- --kubelet-preferred-address-types=InternalIP
You are adding a couple of commands to the metrics server, instead of using the defaults, which appear to not work in most places. After editing this file
kubectl apply -f deployments/1.8+ # per docs
After a minute or so, you should be able to get metrics
Be sure metrics are running prior to installing the kubernetes-dashboard. If not, you will need to force restart both the dashboard metrics scraper AND the dashboard pods