dromara / CloudEon

CloudEon uses Kubernetes to install and deploy open-source big data components, enabling the containerized operation of an open-source big data platform. This allows you to reduce your focus on underlying resource management and maintenance.
https://www.cloudeon.top/
Apache License 2.0
429 stars 104 forks source link

Remote pull images failure when deploying new services offline #58

Open KangTomwk opened 1 year ago

KangTomwk commented 1 year ago

Describe When in a non networked state, the deployment of the new service is stuck, and an error is reported as a remote pull image timeout

Error INFO 65 --- [onPool-worker-1] dromara.cloudeon.processor.PullImageTask 29 : 节点:k8s-worker1 上拉取镜像:registry.cn-hangzhou.aliyuncs.com/udh/monitor:1.0.0 INFO 65 --- [onPool-worker-1] dromara.cloudeon.processor.PullImageTask 41 : 节点:k8s-worker1 上执行命令:docker pull registry.cn-hangzhou.aliyuncs.com/udh/monitor:1.0.0 INFO 65 --- [onPool-worker-1] org.dromara.cloudeon.utils.SshUtils 113 : exe cmd: docker pull registry.cn-hangzhou.aliyuncs.com/udh/monitor:1.0.0 INFO 65 --- [onPool-worker-1] org.dromara.cloudeon.utils.SshUtils 132 : mina result 1 java.lang.RuntimeException: ssh 执行命令失败:Error response from daemon: Get https://registry.cn-hangzhou.aliyuncs.com/v2/: dial tcp: lookup registry.cn-hangzhou.aliyuncs.com on [::1]:53: read udp [::1]:34622->[::1]:53: read: connection refused

Environment

reason The first step of service deployment instructions is to remotely pull the image, resulting in an offline state of pull rejection

Code Location CommandHandler.buildTaskGroupTypes