grep image /root/kubernetes-metrics-server/kubernetes-metrics-server/metrics-server-deployment.yaml
# mount in tmp so we can safely use from-scratch images and/or read-only containers
image: k8s.gcr.io/metrics-server-amd64:v0.3.1
imagePullPolicy: Always
#从阿里下载镜像并tag 镜像
docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server-amd64:v0.3.1
docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server-amd64:v0.3.1 k8s.gcr.io/metrics-server-amd64:v0.3.1
just again
原文地址:https://www.cnblogs.com/sxgaofeng/p/12059172.html
时间: 2024-10-08 13:57:58