easzlab / kubeasz

使用Ansible脚本安装K8S集群,介绍组件交互原理,方便直接,不受国内网络环境影响
https://github.com/easzlab/kubeasz
10.49k stars 3.52k forks source link

第六步安装calico报错 #1398

Closed BruceShi2006 closed 1 month ago

BruceShi2006 commented 3 months ago

What happened? 发生了什么问题?

TASK [calico : 创建 calico证书和私钥] ** changed: [172.31.7.112] changed: [172.31.7.101] changed: [172.31.7.102] changed: [172.31.7.111]

TASK [calico : 分发calico证书相关] **** ok: [172.31.7.111] => (item=ca.pem) ok: [172.31.7.112] => (item=ca.pem) ok: [172.31.7.101] => (item=ca.pem) changed: [172.31.7.112] => (item=calico.pem) changed: [172.31.7.111] => (item=calico.pem) changed: [172.31.7.112] => (item=calico-key.pem) changed: [172.31.7.101] => (item=calico.pem) changed: [172.31.7.111] => (item=calico-key.pem) ok: [172.31.7.102] => (item=ca.pem) changed: [172.31.7.101] => (item=calico-key.pem) changed: [172.31.7.102] => (item=calico.pem) changed: [172.31.7.102] => (item=calico-key.pem)

TASK [calico : get calico-etcd-secrets info] **** fatal: [172.31.7.101]: FAILED! => {"changed": true, "cmd": "/opt/kube/bin/kubectl get secrets -n kube-system", "delta": "0:00:11.301104", "end": "2024-08-05 06:47:24.441823", "msg": "non-zero return code", "rc": 1, "start": "2024-08-05 06:47:13.140719", "stderr": "Unable to connect to the server: net/http: TLS handshake timeout", "stderr_lines": ["Unable to connect to the server: net/http: TLS handshake timeout"], "stdout": "", "stdout_lines": []}

NO MORE HOSTS LEFT **

PLAY RECAP ** 172.31.7.101 : ok=5 changed=2 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
172.31.7.102 : ok=5 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
172.31.7.111 : ok=5 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
172.31.7.112 : ok=5 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0

What did you expect to happen? 期望的结果是什么?

希望大神能帮我解决这个错误

How can we reproduce it (as minimally and precisely as possible)? 尽可能最小化、精确地描述如何复现问题

执行 ./ezctl setup k8s-cluster1 06 报错

Anything else we need to know? 其他需要说明的情况

No response

Kubernetes version k8s 版本

Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.2", GitCommit:"f66044f4361b9f1f96f0053dd46cb7dce5e990a8", GitTreeState:"clean", BuildDate:"2022-06-15T14:22:29Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/amd64"} Kustomize Version: v4.5.4 Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.2", GitCommit:"f66044f4361b9f1f96f0053dd46cb7dce5e990a8", GitTreeState:"clean", BuildDate:"2022-06-15T14:15:38Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/amd64"}

Kubeasz version

3.3.1

OS version 操作系统版本

```console # On Linux: $ cat /etc/os-release # NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.4 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy $ uname -a # Linux master1 5.15.0-117-generic #127-Ubuntu SMP Fri Jul 5 20:13:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux ```

Related plugins (CNI, CSI, ...) and versions (if applicable) 其他网络插件等需要说明的情况

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.