Kubernetes安装metrics-server

 发布metrics-server

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

 修改deploy,追加位置和内容如下:deployment.spec.template.spec.containers[0].command

kubectl edit deploy metrics-server -n kube-system
---追加以下内容,位置和内容如下:deployment.spec.template.spec.containers[0].command
        command:
        - /metrics-server
        - --kubelet-insecure-tls
        - --kubelet-preferred-address-types=InternalDNS,InternalIP,ExternalDNS,ExternalIP,Hostname
---

确认pods的cpu,内存使用状况,

Kubernetes安装metrics-server_第1张图片

 

你可能感兴趣的:(Kubernetes,kubernetes)