我用kubeadm安装k8s,默认etcd是一个,我想安装三个,作为一个集群,错误日志如下:
{"level":"warn","ts":"2022-07-28T14:48:53.787Z","caller":"rafthttp/probing_status.go:68","msg":"prober detected unhealthy status","round-tripper-name":"ROUND_TRIPPER_RAFT_MESSAGE","remote-peer-id":"d9361cd01aae95e5","rtt":"0s","error":"x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "etcd-ca")"}
{"level":"warn","ts":"2022-07-28T14:48:53.787Z","caller":"rafthttp/probing_status.go:68","msg":"prober detected unhealthy status","round-tripper-name":"ROUND_TRIPPER_SNAPSHOT","remote-peer-id":"55b315c25a54c5d2","rtt":"0s","error":"dial tcp 192.168.1.240:2380: connect: connection refused"}
{"level":"warn","ts":"2022-07-28T14:48:53.787Z","caller":"rafthttp/probing_status.go:68","msg":"prober detected unhealthy status","round-tripper-name":"ROUND_TRIPPER_SNAPSHOT","remote-peer-id":"d9361cd01aae95e5","rtt":"0s","error":"x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "etcd-ca")"}
Events:
Type Reason Age From Message
Warning BackOff 13m (x89 over 55m) kubelet Back-off restarting failed container
Warning Unhealthy 3m21s (x357 over 83m) kubelet Startup probe failed: HTTP probe failed with statuscode: 503
kube-system etcd-master 1/1 Running 0 3d5h
kube-system etcd-node1 0/1 CrashLoopBackOff 24 (2m9s ago) 75m
kube-system etcd-node2 0/1 CrashLoopBackOff 17 (3d3h ago) 40m