I built a cluster of kubernetes and installed kubernetes-dashboard and metrics-server, but metric information for the metrics-server (CPU and memory) is not displayed on kubernetes-dashboard.
I installed kubernetes-dashboard using kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml
.
I installed metrics-server using git clone https://github.com/kubernetes-incubator/metrics-server.git
and using kubectl apply -f 1.8+/
.
I modified the configuration of the deploy/1.8+/metrics-server-deployment.yaml file.
containers:
- name: metrics-server
image: registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server-amd64:v0.3.3
imagePullPolicy: IfNotPresent
command:
- /metrics-server
- --kubelet-preferred-address-types=InternalIP
- --kubelet-insecure-tls