eip-work / kuboard-press

Kuboard 是基于 Kubernetes 的微服务管理界面。同时提供 Kubernetes 免费中文教程,入门教程,最新版本的 Kubernetes v1.23.4 安装手册,(k8s install) 在线答疑,持续更新。
https://kuboard.cn/
22.26k stars 1.51k forks source link

用Spray安装集群里报token超时错误 #460

Open hawkonyao opened 11 months ago

hawkonyao commented 11 months ago

`TASK [kubernetes/control-plane : kubeadm | regenerate apiserver cert 2/2] ** changed: [master] Wednesday 11 October 2023 14:39:47 +0800 (0:00:00.846) 0:20:36.450 Wednesday 11 October 2023 14:39:47 +0800 (0:00:00.048) 0:20:36.499 Wednesday 11 October 2023 14:39:47 +0800 (0:00:00.047) 0:20:36.547 Wednesday 11 October 2023 14:39:47 +0800 (0:00:00.039) 0:20:36.586 Wednesday 11 October 2023 14:39:47 +0800 (0:00:00.062) 0:20:36.648 Wednesday 11 October 2023 14:39:48 +0800 (0:00:00.065) 0:20:36.714 FAILED - RETRYING: [master]: Create kubeadm token for joining nodes with 24h expiration (default) (5 retries left). FAILED - RETRYING: [master]: Create kubeadm token for joining nodes with 24h expiration (default) (4 retries left). FAILED - RETRYING: [master]: Create kubeadm token for joining nodes with 24h expiration (default) (3 retries left). FAILED - RETRYING: [master]: Create kubeadm token for joining nodes with 24h expiration (default) (2 retries left). FAILED - RETRYING: [master]: Create kubeadm token for joining nodes with 24h expiration (default) (1 retries left).

TASK [kubernetes/control-plane : Create kubeadm token for joining nodes with 24h expiration (default)] *** fatal: [master]: FAILED! => { "attempts": 5, "changed": false, "cmd": [ "/usr/local/bin/kubeadm", "--kubeconfig", "/etc/kubernetes/admin.conf", "token", "create" ], "delta": "0:01:15.144539", "end": "2023-10-11 12:09:40.191122", "msg": "non-zero return code", "rc": 1, "start": "2023-10-11 12:08:25.046583", "stderr": "timed out waiting for the condition\nTo see the stack trace of this error execute with --v=5 or higher", "stderr_lines": [ "timed out waiting for the condition", "To see the stack trace of this error execute with --v=5 or higher" ], "stdout": "", "stdout_lines": [] }

NO MORE HOSTS LEFT *****

PLAY RECAP ***** localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
master : ok=844 changed=148 unreachable=0 failed=1 skipped=819 rescued=0 ignored=1
node1 : ok=568 changed=97 unreachable=0 failed=0 skipped=562 rescued=0 ignored=0
node2 : ok=568 changed=97 unreachable=0 failed=0 skipped=562 rescued=0 ignored=0

Playbook run took 0 days, 0 hours, 27 minutes, 59 seconds Wednesday 11 October 2023 14:47:10 +0800 (0:07:22.466) 0:27:59.181 ***** =============================================================================== kubernetes/control-plane : Create kubeadm token for joining nodes with 24h expiration (default) - 442.47s download : download_container | Load image into the local container registry -- 90.48s download : download_container | Upload image to node if it is cached --- 44.06s download : download_container | Load image into the local container registry -- 30.08s download : download_container | Load image into the local container registry -- 29.55s download : download_file | Copy file from cache to nodes, if it is available -- 23.37s download : download_container | Load image into the local container registry -- 23.03s download : download_container | Upload image to node if it is cached --- 21.28s download : download_container | Upload image to node if it is cached --- 19.96s download : download_file | Copy file from cache to nodes, if it is available -- 17.43s download : download_container | Upload image to node if it is cached --- 14.96s download : download_container | Upload image to node if it is cached --- 14.87s download : download_container | Upload image to node if it is cached --- 14.03s download : download_container | Upload image to node if it is cached --- 12.82s download : download_container | Upload image to node if it is cached --- 12.38s container-engine/containerd : download_file | Copy file from cache to nodes, if it is available -- 12.11s download : download_file | Copy file from cache to nodes, if it is available -- 11.63s bootstrap-os : Assign inventory name to unconfigured hostnames (hostname) -- 11.44s download : download_container | Load image into the local container registry -- 11.07s download : download_container | Upload image to node if it is cached ---- 9.92s

KUBOARD SPRAY *****

[Failed to install Kubernetes Cluster. Please review the logs and fix the problem.] [集群安装失败,请回顾日志,找到错误信息,并解决问题后,再次尝试。] `

========================================== 错误信息如上。 我的环境全是在vm里搭的。一个centos7.9跑Kuboard-Spray,另外启动了三台linux虚拟机,一台做控制节点,同时承担工作节点和etcd,另外两台做工作节点。 配置好后,使用Spray的图形界面安装/设置服务,大概路了14分钟多,就报了上面的错,哪位大神知道这种情况该怎么处理。