背景
大家可能在云原生领域需要部署周边的一些生态组件时,在国内遇到无法正常拉取镜像,显得就有点苦恼,不过没关系,常见的${{ 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文章来源:https://www.toymoban.com/news/detail-790582.html
文章来源地址https://www.toymoban.com/news/detail-790582.html
到了这里,关于k8s官方镜像代理加速的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!