// 00:51:16 CST failed: [kbs-master1] // error: Pipeline[CreateClusterPipeline] execute failed: Module[KubernetesStatusModule] exec failed: // failed: [kbs-master1] [GetClusterStatus] exec failed after 3 retires: Failed to upload kubeadm certs: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubeadm init phase upload-certs --upload-certs" // W0803 00:51:11.555352 22628 common.go:158] WARNING: could not obtain a bind address for the API Server: no default routes found in "/proc/net/route" or "/proc/net/ipv6_route"; using: 0.0.0.0 // W0803 00:51:16.560893 22628 version.go:103] could not fetch a Kubernetes version from the internet: unable to get URL "https://dl.k8s.io/release/stable-1.txt": Get "https://dl.k8s.io/release/stable-1.txt": dial tcp: lookup dl.k8s.io on 192.168.42.1:53: read udp 192.168.42.131:48752->192.168.42.1:53: read: connection refused // W0803 00:51:16.560913 22628 version.go:104] falling back to the local client version: v1.22.12 // cannot use "0.0.0.0" as the bind address for the API Server // To see the stack trace of this error execute with --v=5 or higher: Process exited with status 1 // // 什么问题内容:根据给出的错误信息,出现了以下问题: // // 1. "failed: [kbs-master1] [GetClusterStatus] exec failed after 3 retires: Failed to upload kubeadm certs: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubeadm init phase upload-certs --upload-certs"":在执行命令期间上传kubeadm证书失败。 // // 2. "WARNING: could not obtain a bind address for the API Server: no default routes found in "/proc/net/route" or "/proc/net/ipv6_route"; using: 0.0.0.0":无法获取API服务器的绑定地址,使用了默认的0.0.0.0。 // // 3. "could not fetch a Kubernetes version from the internet: unable to get URL "https://dl.k8s.io/release/stable-1.txt": Get "https://dl.k8s.io/release/stable-1.txt": dial tcp: lookup dl.k8s.io on 192.168.42.1:53: read udp 192.168.42.131:48752->192.168.42.1:53: read: connection refused":无法从互联网获取Kubernetes版本。 // // 以上是错误信息的简要解释,具体原因需要根据更多的上下文和日志信息进行分析。

Kubernetes 集群初始化失败: kubeadm 证书上传失败, API 服务器绑定地址问题

原文地址: https://www.cveoy.top/t/topic/p9kB 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录