问题

添加node,rke up报错:

WARN[0197] [etcd] host [10.7.0.51] failed to check etcd health: failed to get /health for host [10.7.0.51]: Get "https://10.7.0.51:2379/health": remote error: tls: bad certificate
WARN[0290] [etcd] host [10.7.0.52] failed to check etcd health: failed to get /health for host [10.7.0.52]: Get "https://10.7.0.52:2379/health": remote error: tls: bad certificate
WARN[0382] [etcd] host [10.7.0.53] failed to check etcd health: failed to get /health for host [10.7.0.53]: Get "https://10.7.0.53:2379/health": remote error: tls: bad certificate
FATA[0382] [etcd] Failed to bring up Etcd Plane: etcd cluster is unhealthy: hosts [10.7.0.51,10.7.0.52,10.7.0.53] failed to report healthy. Check etcd container logs on each host for more information

etcd容器报错:

{"level":"warn","ts":"2023-08-04T05:25:55.981Z","caller":"embed/config_logging.go:169","msg":"rejected connection","remote-addr":"10.7.0.51:37744","server-name":"","error":"tls: failed to verify client certificate: x509: certificate signed by unknown authority (possibly because of \"crypto/rsa: verification error\" while trying to verify candidate authority certificate \"kube-ca\")"}

解决办法

可能是因为cluster.rkestate损坏,解决办法如下:

#重建坏的cluster.rkestate文件
rke util get-state-file

#使用rke up升级
rke up --update-only