website icon indicating copy to clipboard operation
website copied to clipboard

Failed to excute the command ./kk add nodes -f sample.yaml

Open wxwyes opened this issue 4 years ago • 1 comments

INFO[22:47:37 CST] Installing docker ...
INFO[22:47:37 CST] Start to download images on all nodes
[k8s-node2] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/pause:3.2 [k8s-master] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/etcd:v3.4.13 [k8s-node1] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/pause:3.2 [k8s-node1] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/kube-proxy:v1.20.4 [k8s-node2] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/kube-proxy:v1.20.4 [k8s-node1] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/coredns:1.6.9 [k8s-node2] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/coredns:1.6.9 [k8s-node1] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/k8s-dns-node-cache:1.15.12 [k8s-node2] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/k8s-dns-node-cache:1.15.12 [k8s-node1] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/kube-controllers:v3.16.3 [k8s-node2] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/kube-controllers:v3.16.3 [k8s-node1] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/cni:v3.16.3 [k8s-node2] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/cni:v3.16.3 [k8s-node1] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/node:v3.16.3 [k8s-node2] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/node:v3.16.3 [k8s-node1] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/pod2daemon-flexvol:v3.16.3 [k8s-node2] Downloading image: registry.cn-beijing.aliyuncs.com/kubesphereio/pod2daemon-flexvol:v3.16.3 ERRO[22:48:09 CST] Failed to download image: registry.cn-beijing.aliyuncs.com/kubesphereio/etcd:v3.4.13: Failed to exec command: sudo env PATH=$PATH docker pull registry.cn-beijing.aliyuncs.com/kubesphereio/etcd:v3.4.13 Error response from daemon: Get https://registry.cn-beijing.aliyuncs.com/v2/: dial tcp: lookup registry.cn-beijing.aliyuncs.com on [::1]:53: read udp [::1]:59545->[::1]:53: read: connection refused: Process exited with status 1 node=192.168.1.10 WARN[22:48:09 CST] Task failed ...
WARN[22:48:09 CST] error: interrupted by error
Error: Failed to pre-pull images: interrupted by error Usage: kk add nodes [flags]

Flags: --download-cmd string The user defined command to download the necessary binary files. The first param '%s' is output path, the second param '%s', is the URL (default "curl -L -o %s %s") -f, --filename string Path to a configuration file -h, --help help for nodes --skip-pull-images Skip pre pull images -y, --yes Skip pre-check of the installation

Global Flags: --debug Print detailed information (default true) --in-cluster Running inside the cluster

Failed to pre-pull images: interrupted by error

wxwyes avatar Aug 28 '21 15:08 wxwyes

Hi,

From the logs, it prompts that it was failed to pull the docker images. You can try to use docker pull xxx to check if the network connection to the registry works for you. If available, you can try to re-execute ./kk add nodes -f sample.yaml.

FeynmanZhou avatar Aug 29 '21 07:08 FeynmanZhou