编辑docker配置文件设置socks5代理
[root@master-all ~]# vim /usr/lib/systemd/system/docker.service
[Service]
Environment="ALL_PROXY=socks5://192.168.230.1:1080"
修改完成保存后执行如下命令加载配置文件并重启docker
[root@master-all ~]# systemctl daemon-reload
[root@master-all ~]# systemctl restart docker
设置完成后,无问题
[root@master-all ~]# kubeadm config images pull --config kubeadm-init.yaml
W0830 17:40:02.160189 11028 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[config/images] Pulled k8s.gcr.io/kube-apiserver:v1.19.0
[config/images] Pulled k8s.gcr.io/kube-controller-manager:v1.19.0
[config/images] Pulled k8s.gcr.io/kube-scheduler:v1.19.0
[config/images] Pulled k8s.gcr.io/kube-proxy:v1.19.0
[config/images] Pulled k8s.gcr.io/pause:3.2
[config/images] Pulled k8s.gcr.io/etcd:3.4.9-1
[config/images] Pulled k8s.gcr.io/coredns:1.7.0