问题原因国内无法直接访问镜像地址,改为国内地址即可
#!/bin/bash # download k8s 1.28.8 images # get image-list by 'kubeadm config images list --kubernetes-version=v1.15.2' # gcr.azk8s.cn/google-containers == k8s.gcr.io images=( kube-apiserver:v1.28.8 kube-controller-manager:v1.28.8 kube-scheduler:v1.28.8 kube-proxy:v1.28.8 pause:3.9 etcd:3.5.10-0 coredns:v1.10.1 ) for imageName in ${images[@]};do docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/$imageName docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/$imageName registry.k8s.io/$imageName docker rmi registry.cn-hangzhou.aliyuncs.com/google_containers/$imageName done
标签:google,cn,拉取,v1.28,imageName,images,镜像,K8S,kube From: https://www.cnblogs.com/libruce/p/18079743