kubeadm init initialization error resolved, pro-test

[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.aliyuncs.com/google_containers/kube-apiserver:v1.15.1: output: Error response from daemon: 
Get https://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
    [ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-controller-manager:v1.15.1: output: Error response from
 daemon: Get https://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
    [ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-scheduler:v1.15.1: output: Error response from daemon: 
Get https://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
    [ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-proxy:v1.15.1: output: Error response from daemon: Get 
https://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
    [ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/pause:3.1: output: Error response from daemon: Get https://r
egistry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
    [ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/etcd:3.3.10: output: Error response from daemon: Get https:/
/registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
    [ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/coredns:1.3.1: output: Error response from daemon: Get https
://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused
  • solve

On the basis of your original running order, the increase in the following, designated domestic source

[root@kmaster ~]# kubeadm init --image-repository registry.aliyuncs.com/google_containers --ignore-preflight-errors=Swap

Other

If your /usr/lib/systemd/system/docker.servicefile has two lines similar to the following configuration

Environment="HTTPS_PROXY=http://www.ik8s.io:10080"
Environment="NO_PROXY=127.0.0.0/8,172.20.0.0/16"

Comment or delete just fine

Guess you like

Origin www.cnblogs.com/joinbestgo/p/11223627.html