[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-apiserver-amd64:v1.11.1]: exit status 1

问题描述

[[email protected] ~]# 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。以后碰到类似的问题,可先查看各组件的版本

[[email protected] ~]# kubeadm version

解决办法

将初始化命令改成:

[[email protected] ~]# kubeadm init --kubernetes-version=v1.11.2 --pod-network-cidr=10.244.0.0/16 --service-cidr=10.96.0.0/12

最后初始化成功

原文地址:https://www.cnblogs.com/huhyoung/p/9737456.html

时间: 2024-07-30 19:41:44

[ERROR ImagePull]: failed to pull image [k8s.gcr.io/kube-apiserver-amd64:v1.11.1]: exit status 1的相关文章

Kubernetes搭建过程中使用k8s.gcr.io、quay.io、docker.io的镜像加速

前言 因为众所周知的原因,在使用Kubernetes和docker的时候会出现一些镜像无法拉取或者速度较慢的情况,错误信息类似以下: [ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-proxy:v1.17.3: output: Error response from daemon ... Failed to pull image "quay.io/coreos/flannel:v0.11.0-amd64": rpc err

k8s.gcr.io镜像无法下载的问题

在使用k8s的过程中,经常遇到k8s.gcr.io的镜像无法下载的问题,无意间得知可以通过这种方法下载,赶紧记下来:下载速度还很快,解决我一大难题~ curl -s https://www.zhangguanzhang.com/pull | bash -s -- k8s.gcr.io/metrics-server-amd64:v0.3.1 注:metrics-server-amd64:v0.3.1可以替换为任何k8s.gcr.io的镜像 原文地址:http://blog.51cto.com/li

[转帖]k8s.gcr.io镜像无法下载的问题

k8s.gcr.io镜像无法下载的问题 https://blog.51cto.com/liuzhengwei521/2301497 看了下 赵安家老师应该是青岛人 在济南顺能网络科技有限公司上班 铭盛大厦 个人主页: https://anjia0532.github.io 今天早上简单看了下个人的简介 可能是开发运维工作多一些 涉猎很广泛 weilovepan520关注2人评论3370人阅读2018-10-17 21:50:17 在使用k8s的过程中,经常遇到k8s.gcr.io的镜像无法下载的

安装Minikube无法访问k8s.gcr.io的解决办法

学习Kubenetes,安装Minikube报错.提示无法访问k8s.gcr.io. 上网搜索,好像多数方法是用Docker拉取镜像改标签.感觉比较麻烦. 想用本地镜像库,运行: minikube start --help |grep repo --image-repository='': Alternative image repository to pull docker images from. This can be used when you have limited access t

[转帖]k8s.gcr.io/pause的作用

k8s.gcr.io/pause的作用 https://blog.51cto.com/liuzhengwei521/2422120 weilovepan520关注0人评论196人阅读2019-07-21 11:35:05 重要概念:Pod内的容器都是平等的关系,共享Network Namespace.共享文件 pause容器的最主要的作用:创建共享的网络名称空间,以便于其它容器以平等的关系加入此网络名称空间 pause进程是pod中所有容器的父进程(即第一个进程): 关于 Pod 最重要的一个事

Kubernetes Cluster Error Accessing gcr.io

使用 kubectl run nginx --image=nginx 后查看: kubectl describe pods 发现处于creating状态,并且报错: (unable to ping registry endpoint https://gcr.io/v0/\nv2 ping attempt failed with error: Get https://gcr.io/v2/:... 原因:gcr.io被墙,无法ping到. 解决方法: 在各个nodes上,从dockerhub拉取相关

Git 报错:git - error: RPC failed; curl 18 transfer closed with outstanding read data remaining 解决方案

error: RPC failed; curl 18 transfer closed with outstanding read data remaining because have error when clone by HTTP protocol (curl command). And, you should increment buffer size: git config --global http.postBuffer 524288000 原因:由于Http协议错误,当Pull或者C

使用kubeadm部署k8s集群00-缓存gcr.io镜像

使用kubeadm部署k8s集群00-缓存gcr.io镜像 2018/2/7 原因:kubeadm init 时,需要下载一些镜像,但国内网络原因,大家懂的,不容易下载,此时,只能去绕过它.备注:官方在 1.5 收到阿里一位童鞋的 PR 来允许指定一个第三方的 registry 来解决上述问题,但因为时间所限,并未找到具体的操作方法. [在国外节点上操作] 镜像来源 针对下述镜像: gcr.io/google_containers/kube-apiserver-amd64:v1.9.0 gcr.

View Composer Agent initialization error (16): Failed to activate software license (1026556)

1.       桌面发布过程中偶尔有些桌面池中的桌面提示无法访问代理,查看报错信息如下:View Composer Agent initialization error (16):Failed to activate software license (1026556). KB地址:https://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&externalId=1026556 主要意思是Windows 7系统激活的