一键部署报错如下
来源:4-3 用kubespray一键部署生产级k8s集群
博楠
2022-01-03
从网上搜的答案说需要添加ca 公私钥,不知道怎么添加试了4个小时也没有解决掉
TASK [Configure | Wait for etcd cluster to be healthy] *************************************************************************************
task path: /root/kubespray-2.15.0/roles/etcd/tasks/configure.yml:80
fatal: [node-1]: FAILED! => {
“attempts”: 4,
“changed”: false,
“cmd”: “set -o pipefail && /usr/local/bin/etcdctl endpoint --cluster status && /usr/local/bin/etcdctl endpoint --cluster health 2>&1 | grep -v ‘Error: unhealthy cluster’ >/dev/null”,
“delta”: “0:00:05.014680”,
“end”: “2022-01-03 18:06:41.201573”,
“invocation”: {
“module_args”: {
"_raw_params": “set -o pipefail && /usr/local/bin/etcdctl endpoint --cluster status && /usr/local/bin/etcdctl endpoint --cluster health 2>&1 | grep -v ‘Error: unhealthy cluster’ >/dev/null”,
"_uses_shell": true,
“argv”: null,
“chdir”: null,
“creates”: null,
“executable”: “/bin/bash”,
“removes”: null,
“stdin”: null,
“stdin_add_newline”: true,
“strip_empty_ends”: true,
“warn”: true
}
},
“msg”: “non-zero return code”,
“rc”: 1,
“start”: “2022-01-03 18:06:36.186893”,
“stderr”: “{“level”:“warn”,“ts”:“2022-01-03T18:06:41.199+0800”,“caller”:“clientv3/retry_interceptor.go:62”,“msg”:“retrying of unary invoker failed”,“target”:“endpoint://client-390d5abf-ab37-4553-8ac1-aaabc512cc47/192.168.79.141:2379”,“attempt”:0,“error”:“rpc error: code = DeadlineExceeded desc = context deadline exceeded”}\nError: failed to fetch endpoints from etcd cluster member list: context deadline exceeded”,
“stderr_lines”: [
"{“level”:“warn”,“ts”:“2022-01-03T18:06:41.199+0800”,“caller”:“clientv3/retry_interceptor.go:62”,“msg”:“retrying of unary invoker failed”,“target”:“endpoint://client-390d5abf-ab37-4553-8ac1-aaabc512cc47/192.168.79.141:2379”,“attempt”:0,“error”:“rpc error: code = DeadlineExceeded desc = context deadline exceeded”}",
“Error: failed to fetch endpoints from etcd cluster member list: context deadline exceeded”
],
“stdout”: “”,
“stdout_lines”: []
}
1回答
-
博楠
提问者
2022-01-03
我执行了reset,然后又重新一键部署又成功了,这个玩意儿,卡了我2天,没想到执行了reset,在重新部署就又好了
00