其他分享
首页 > 其他分享> > kubeadm init:failed to pull image coredns:v1.8.0: error

kubeadm init:failed to pull image coredns:v1.8.0: error

作者:互联网

kubeadm init:failed to pull image coredns:v1.8.0: error

 

master(主节点)kubeadm init 报错,主要错误:

 

错误关键信息总结:

Kubernetes version: v1.21.1,依赖/coredns/coredns:v1.8.0,registry.cn-hangzhou.aliyuncs.com/google_containers/coredns/coredns:v1.8.0 不存在。

解决方案:

本地执行以下命令:

docker pull coredns/coredns:1.8.0

docker tag coredns/coredns:1.8.0 registry.cn-hangzhou.aliyuncs.com/google_containers/coredns/coredns:v1.8.0
 

在执行以下命令ok的

kubeadm init --kubernetes-version=v1.21.1 --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=192.168.198.14

标签:pull,aliyuncs,--,image,error,init,v1.8,coredns,kubeadm
来源: https://www.cnblogs.com/lgj8/p/15057899.html