[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-apiserver-amd64:v1.11.1]: exit status 1
Posted 赤道上的冰雕
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-apiserver-amd64:v1.11.1]: exit status 1相关的知识,希望对你有一定的参考价值。
问题描述
[root@localhost ~]# kubeadm init --kubernetes-version=v1.11.1 --pod-network-cidr=10.244.0.0/16 --service-cidr=10.96.0.0/12
在进行k8s集群初始化的时候,报以下错误:
[preflight] Some fatal errors occurred:
[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-apiserver-amd64:v1.11.1]: exit status 1
[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-controller-manager-amd64:v1.11.1]: exit status 1
[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-scheduler-amd64:v1.11.1]: exit status 1
[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-proxy-amd64:v1.11.1]: exit status 1
原因
我之前是用别人代理下载的k8s镜像版本是v1.11.1,后面隔了一段时间代理过期,重新安装的了kubeadm,此时的版本是v1.11.2,而我在kubeadm init --kubernetes-version=v1.11.1时版本还是写着v1.11.1。以后碰到类似的问题,可先查看各组件的版本
[root@localhost ~]# kubeadm version
解决办法
将初始化命令改成:
[root@localhost ~]# kubeadm init --kubernetes-version=v1.11.2 --pod-network-cidr=10.244.0.0/16 --service-cidr=10.96.0.0/12
最后初始化成功
以上是关于[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-apiserver-amd64:v1.11.1]: exit status 1的主要内容,如果未能解决你的问题,请参考以下文章
[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-apiserver-amd64:v1.11.1]: exit status 1
Command failed with error 18 (AuthenticationFailed): ‘Authentication failed.’
Error response from daemon: driver failed... Error: failed to start containers...
Clone failed RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket fail
Client.Error.MessageSend - Channel.Connect.Failed 错误 NetConnection.Call.Failed:HTTP:状态 404:url: