背景
大家可能在云原生领域需要部署周边的一些生态组件时,在国内遇到无法正常拉取镜像,显得就有点苦恼,不过没关系,常见的${{ registry_name }} 例如 “gcr.io”,“registry.k8s.io”
Failed to pull image “registry.k8s.io/prometheus-adapter/prometheus-adapter:v0.11.2”: rpc error: code = Unknown desc = failed to pull and unpack image “registry.k8s.io/prometheus-adapter/prometheus-adapter:v0.11.2”: failed to resolve reference “registry.k8s.io/prometheus-adapter/prometheus-adapter:v0.11.2”: failed to do request: Head “https://us-west2-docker.pkg.dev/v2/k8s-artifacts-prod/images/prometheus-adapter/prometheus-adapter/manifests/v0.11.2”: dial tcp 64.233.188.82:443: connect: connection timed out
解决方案
gcr.io------>替换为 gcr.dockerproxy.com
registry.k8s.io------>替换为 k8s.mirror.nju.edu.cn
版权归原作者 寻花之梦~~ 所有, 如有侵权,请联系我们删除。