有人能帮助吗
当我运行"kubeadm init"时,我得到了以下错误
[init] Using Kubernetes version: v1.25.0
[preflight] Running pre-flight checks
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[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.k8s.io/kube-apiserver:v1.25.0: output: E0901 16:50:43.675142 4165 remote_image.go:218] "PullImage from image service failed" err="rpc error: code = Unknown desc = failed to pull and unpack image "registry.k8s.io/kube-apiserver:v1.25.0": failed to resolve reference "registry.k8s.io/kube-apiserver:v1.25.0": failed to do request: Head https://registry.k8s.io/v2/kube-apiserver/manifests/v1.25.0: dial tcp 34.107.244.51:443: i/o timeout" image="registry.k8s.io/kube-apiserver:v1.25.0"
time="2022-09-01T16:50:43-06:00" level=fatal msg="pulling image: rpc error: code = Unknown desc = failed to pull and unpack image "registry.k8s.io/kube-apiserver:v1.25.0": failed to resolve reference "registry.k8s.io/kube-apiserver:v1.25.0": failed to do request: Head https://registry.k8s.io/v2/kube-apiserver/manifests/v1.25.0: dial tcp 34.107.244.51:443: i/o timeout"
, error: exit status 1
[ERROR ImagePull]: failed to pull image registry.k8s.io/kube-controller-manager:v1.25.0: output: E0901 16:53:14.264007 4564 remote_image.go:218] "PullImage from image service failed" err="rpc error: code = Unknown desc = failed to pull and unpack image "registry.k8s.io/kube-controller-manager:v1.25.0": failed to resolve reference "registry.k8s.io/kube-controller-manager:v1.25.0": failed to do request: Head https://registry.k8s.io/v2/kube-controller-manager/manifests/v1.25.0: dial tcp 34.107.244.51:443: i/o timeout" image="registry.k8s.io/kube-controller-manager:v1.25.0"
time="2022-09-01T16:53:14-06:00" level=fatal msg="pulling image: rpc error: code = Unknown desc = failed to pull and unpack image "registry.k8s.io/kube-controller-manager:v1.25.0": failed to resolve reference "registry.k8s.io/kube-controller-manager:v1.25.0": failed to do request: Head https://registry.k8s.io/v2/kube-controller-manager/manifests/v1.25.0: dial tcp 34.107.244.51:443: i/o timeout"
, error: exit status 1
[ERROR ImagePull]: failed to pull image registry.k8s.io/kube-scheduler:v1.25.0: output: E0901 16:55:44.364804 4922 remote_image.go:218] "PullImage from image service failed" err="rpc error: code = Unknown desc = failed to pull and unpack image "registry.k8s.io/kube-scheduler:v1.25.0": failed to resolve reference "registry.k8s.io/kube-scheduler:v1.25.0": failed to do request: Head https://registry.k8s.io/v2/kube-scheduler/manifests/v1.25.0: dial tcp 34.107.244.51:443: i/o timeout" image="registry.k8s.io/kube-scheduler:v1.25.0"
time="2022-09-01T16:55:44-06:00" level=fatal msg="pulling image: rpc error: code = Unknown desc = failed to pull and unpack image "registry.k8s.io/kube-scheduler:v1.25.0": failed to resolve reference "registry.k8s.io/kube-scheduler:v1.25.0": failed to do request: Head https://registry.k8s.io/v2/kube-scheduler/manifests/v1.25.0: dial tcp 34.107.244.51:443: i/o timeout"
, error: exit status 1
[ERROR ImagePull]: failed to pull image registry.k8s.io/kube-proxy:v1.25.0: output: E0901 16:58:14.769855 5295 remote_image.go:218] "PullImage from image service failed" err="rpc error: code = Unknown desc = failed to pull and unpack image "registry.k8s.io/kube-proxy:v1.25.0": failed to resolve reference "registry.k8s.io/kube-proxy:v1.25.0": failed to do request: Head https://registry.k8s.io/v2/kube-proxy/manifests/v1.25.0: dial tcp 34.107.244.51:443: i/o timeout" image="registry.k8s.io/kube-proxy:v1.25.0"
time="2022-09-01T16:58:14-06:00" level=fatal msg="pulling image: rpc error: code = Unknown desc = failed to pull and unpack image "registry.k8s.io/kube-proxy:v1.25.0": failed to resolve reference "registry.k8s.io/kube-proxy:v1.25.0": failed to do request: Head https://registry.k8s.io/v2/kube-proxy/manifests/v1.25.0: dial tcp 34.107.244.51:443: i/o timeout"
, error: exit status 1
[ERROR ImagePull]: failed to pull image registry.k8s.io/etcd:3.5.4-0: output: E0901 17:03:14.966455 6024 remote_image.go:218] "PullImage from image service failed" err="rpc error: code = Unknown desc = failed to pull and unpack image "registry.k8s.io/etcd:3.5.4-0": failed to resolve reference "registry.k8s.io/etcd:3.5.4-0": failed to do request: Head https://registry.k8s.io/v2/etcd/manifests/3.5.4-0: dial tcp 34.107.244.51:443: i/o timeout" image="registry.k8s.io/etcd:3.5.4-0"
time="2022-09-01T17:03:14-06:00" level=fatal msg="pulling image: rpc error: code = Unknown desc = failed to pull and unpack image "registry.k8s.io/etcd:3.5.4-0": failed to resolve reference "registry.k8s.io/etcd:3.5.4-0": failed to do request: Head https://registry.k8s.io/v2/etcd/manifests/3.5.4-0: dial tcp 34.107.244.51:443: i/o timeout"
, error: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
我无法初始化控制平面,请确保docker正在运行。库贝特尔,库贝达姆也在工作。这看起来像是K8方面的问题,还是我做错了什么。
根据输出,由于以下线路,它看起来确实存在一些连接问题,可能是连接缓慢或没有连接
无法提取图像注册表.k8s.io******
你能用以下检查到图像注册表的连接吗
ping registry.k8s.io
你应该从服务器得到响应,如果你没有得到响应,需要对网络连接进行故障排除
PING注册表.k8s.io(2600:1001:01:013::(2600:1019:013::((56个数据字节64个字节,起始时间为2600:1901:0:1013::(2600:9901:0:1013::(:icmp_seq=1 ttl=56时间=69.1 ms64个字节,起始时间为2600:1901:0:1013::(2600:9901:0:1013::(:icmp_seq=2 ttl=56时间=83.9 ms64个字节,起始于2600:1901:0:1013::(2600:9901:0:1013::(:icmp_seq=3 ttl=56时间=83.4 ms
查看错误消息
[ERROR ImagePull]: failed to pull image registry.k8s.io/kube-apiserver:v1.25.0
未提取图像,因此引发ImagePull错误。您应该从运行initialize命令的计算机连接到internet。