请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

一键部署时etcd集群无法启动

图片描述

FAILED - RETRYING: Configure | Wait for etcd cluster to be healthy (1 retries left).Result was: {
    "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.026869",
    "end": "2022-10-09 21:50:57.554803",
    "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,
    "retries": 5,
    "start": "2022-10-09 21:50:52.527934",
    "stderr": "{\"level\":\"warn\",\"ts\":\"2022-10-09T21:50:57.551+0800\",\"caller\":\"clientv3/retry_interceptor.go:62\",\"msg\":\"retrying of unary invoker failed\",\"target\":\"endpoint://client-9f2a79e4-9cca-4605-a813-9baf74bf74ed/192.168.106.145:2379\",\"attempt\":0,\"error\":\"rpc error: code = DeadlineExceeded desc = latest connection error: connection error: desc = \\\"transport: authentication handshake failed: EOF\\\"\"}\nError: failed to fetch endpoints from etcd cluster member list: context deadline exceeded",
    "stderr_lines": [
        "{\"level\":\"warn\",\"ts\":\"2022-10-09T21:50:57.551+0800\",\"caller\":\"clientv3/retry_interceptor.go:62\",\"msg\":\"retrying of unary invoker failed\",\"target\":\"endpoint://client-9f2a79e4-9cca-4605-a813-9baf74bf74ed/192.168.106.145:2379\",\"attempt\":0,\"error\":\"rpc error: code = DeadlineExceeded desc = latest connection error: connection error: desc = \\\"transport: authentication handshake failed: EOF\\\"\"}",
        "Error: failed to fetch endpoints from etcd cluster member list: context deadline exceeded"
    ],
    "stdout": "",
    "stdout_lines": []
}

老师可以教教我吗,这个问题困扰我很久了,本地是没有问题的,但是到了测试环境中就出问题了,测试环境可以连外网,不知道是不是我之前根据网上的帖子安装过k8s的原因。

正在回答 回答被采纳积分+3

1回答

刘果国 2022-10-10 09:49:21

建议先清理一下etcd相关的文件再试(一般在/var/lib/etcd),另外一键部署支持外部etcd集群。也可以先手动部署好etcd集群在一键部署k8s

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信