-- 拉取官方模版 wget https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml -- 打开模版 -- 将image换成阿里云镜像: image: registry.aliyuncs.com/google_containers/metrics-server:v0.6.4 -- 在args添加下面两行:注意空格与对齐 - --kubelet-insecure-tls - --kubelet-preferred-address-types=InternalDNS,InternalIP,ExternalDNS,ExternalIP,Hostname -- 安装 kubectl apply -f components.yaml
版本适配:
标签:Kubernetes,--,image,server,Metrics,yaml From: https://www.cnblogs.com/bigbear-xx/p/17897403.html