优化代码

This commit is contained in:
zeaslity
2025-03-05 17:34:09 +08:00
parent 84ecf9d0e6
commit 77cafaf0a1
17 changed files with 414 additions and 43 deletions

View File

@@ -0,0 +1,24 @@
#
https://stackoverflow.com/questions/71603038/rancher-rke-up-errors-on-etcd-host-health-checks-remote-error-tls-bad-certific
rke up --update-only
# 出现问题,报证书错误
DEBU[0281] [etcd] failed to check health for etcd host [x.x.x.x]: failed to get /health for host [x.x.x.x]: Get "https://x.x.x.x:2379/health": remote error: tls: bad certificate
rm -f /etc/kubernetes/ssl/kube-service-account-token-key.pem
rm -f /etc/kubernetes/ssl/kube-service-account-token.pem
cp /etc/kubernetes/ssl/kube-apiserver-key.pem /etc/kubernetes/ssl/kube-service-account-token-key.pem
cp /etc/kubernetes/ssl/kube-apiserver.pem /etc/kubernetes/ssl/kube-service-account-token.pem
rke util get-state-file
rm kube_config_cluster.yml cluster.rkestate
rke up
rke cert rotate