kubeadm init 报错 aliyuncs.com/google_containers/kube-apiserver:v1.18.8 not found

来源:9-5 使用kubeadm搭建多节点K8S集群

Ganjr

2020-08-20

[vagrant@k8s-master ~]$ sudo kubeadm init --pod-network-cidr 172.100.0.0/16 --apiserver-advertise-address 192.168.205.120 --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
W0820 05:51:19.673829    3974 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.18.8
[preflight] Running pre-flight checks
        [WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR ImagePull]: failed to pull image registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.18.8: output: Error response from daemon: manifest for registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.18.8 not found: manifest unknown: manifest unknown
, error: exit status 1
        [ERROR ImagePull]: failed to pull image registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.18.8: output: Error response from daemon: manifest for registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.18.8 not found: manifest unknown: manifest unknown
, error: exit status 1
        [ERROR ImagePull]: failed to pull image registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.18.8: output: Error response from daemon: manifest for registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.18.8 not found: manifest unknown: manifest unknown
, error: exit status 1
        [ERROR ImagePull]: failed to pull image registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.18.8: output: Error response from daemon: manifest for registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.18.8 not found: manifest unknown: manifest unknown
, error: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
写回答

1回答

麦兜搞IT

2020-08-22

估计是阿里的这个镜像源有问题,您再找找其他的国内源试试?

0
3
Ganjr
回复
麦兜搞IT
thanks!
2020-08-27
共3条回复

系统学习Docker 践行DevOps理念

无论你是开发、测试还是运维,Docker都是你的必备技能。

3297 学习 · 1895 问题

查看课程