美文网首页程序员
minikube 镜像被墙问题 k8s.gcr.io

minikube 镜像被墙问题 k8s.gcr.io

作者: 呼呼呼嘻嘻 | 来源:发表于2019-04-16 15:56 被阅读0次

    问题:

    网络原因 k8s.gcr.io 拉取不到。

    
    [ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-apiserver:v1.14.0: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers), error: exit status 1
    [ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-controller-manager:v1.14.0: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers), error: exit status 1
    ... ...
    

    百度一下给出的方案一般是:拉其他镜像回来然后改 tag。一个一个拉,一个一个改,蛋疼。

    跑 github 上看了下 minikube,赫然写着

    
    startCmd.Flags().String(imageRepository, "", "Alternative image repository to pull docker images from. This can be used when you have limited access to gcr.io. For Chinese mainland users, you may use local gcr.io mirrors such as registry.cn-hangzhou.aliyuncs.com/google_containers")
    
    

    。。。

    相关文章

      网友评论

        本文标题:minikube 镜像被墙问题 k8s.gcr.io

        本文链接:https://www.haomeiwen.com/subject/ppibwqtx.html