- Kubernetes权威指南:从Docker到Kubernetes实践全接触(第5版)
- 龚正等编著
- 163字
- 2025-02-25 02:41:13
2.2.3 下载Kubernetes的相关镜像
为了加快kubeadm创建集群的过程,可以预先将所需镜像下载完成。可以通过kubeadm config images list命令查看镜像列表,例如:

如果无法访问k8s.gcr.io,则可以使用国内镜像托管站点进行下载,例如https://1nj0zren.mirror.aliyuncs.com,这可以通过修改Docker服务的配置文件(默认为/etc/docker/daemon.json)进行设置,例如:


然后,使用kubeadm config images pull命令或者docker pull命令下载上述镜像,例如:

在镜像下载完成之后,就可以进行安装了。