删除node后,再启动rke2-server就连接不上etcd-endpoints

报错内容如下:

在线安装rke2 master第二个节点后,启动 rke2-server
把该节点停止:systemctl top rke2-server
删除节点:kubectl delete node master2
重启服务:systemctl start rke2-server
重启服务后报上面错误,不用重新安装rke2,请问我需要怎么做才能让服务正常启动。谢谢

按照默认的提交模版再提交一次吧,把详细的重现步骤列一下,我看看本地能否重现

#安装master1
mkdir -p /etc/rancher/rke2
cat > /etc/rancher/rke2/config.yaml  <<EOF
#server: https://192.168.16.75:9345
#token:  不设置默认生成
system-default-registry: "registry.cn-hangzhou.aliyuncs.com"
write-kubeconfig-mode: 777
cni: "canal" 
kube-proxy-arg:
  - proxy-mode=ipvs
  - ipvs-strict-arp=true
node-label:
  - node=master
  - foo=three
EOF

#安装master1-导入path 
cat > /etc/profile.d/rke2.sh <<EOF
export PATH=/var/lib/rancher/rke2/bin:$PATH
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
export CONTAINER_RUNTIME_ENDPOINT=unix:///run/k3s/containerd/containerd.sock
EOF
source /etc/profile

#安装master1-配置registry
mkdir -p /etc/rancher/rke2
cat > /etc/rancher/rke2/registries.yaml<<EOF
mirrors:
  docker.io:
    endpoint:
      - "https://registry.cn-hangzhou.aliyuncs.com"
      - "https://docker.mirrors.ustc.edu.cn"
EOF

#安装master1-安装  v1.25.11-rke2r1
curl -sfL https://rancher-mirror.rancher.cn/rke2/install.sh | INSTALL_RKE2_MIRROR=cn INSTALL_RKE2_VERSION=v1.27.10-rke2r1 sh -


#安装master1- 设置开机启动
systemctl enable rke2-server
## 启动过程耗时会比较久:5-10 分钟,
## 启动失败时,可以借助 "rke2 server --config config.yaml --debug" 查看细节
systemctl start rke2-server
systemctl status rke2-server
#安装master1- 查看日志
journalctl -u rke2-server -f


#安装master2
cat /var/lib/rancher/rke2/server/node-token
mkdir -p /etc/rancher/rke2
cat > /etc/rancher/rke2/config.yaml <<EOF
server: https://192.168.16.68:9345
token: 0fcef8600c960e74d639f08e9abd8a72
system-default-registry: "registry.cn-hangzhou.aliyuncs.com"
write-kubeconfig-mode: 777
cni: "canal" 
kube-proxy-arg:
  - proxy-mode=ipvs
  - ipvs-strict-arp=true
#node-label:
#  - node=master
#  - foo=three
EOF


#安装master2-导入path 
cat > /etc/profile.d/rke2.sh <<EOF
export PATH=/var/lib/rancher/rke2/bin:$PATH
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
export CONTAINER_RUNTIME_ENDPOINT=unix:///run/k3s/containerd/containerd.sock
EOF
source /etc/profile

#安装master2-配置registry
mkdir -p /etc/rancher/rke2
cat > /etc/rancher/rke2/registries.yaml<<EOF
mirrors:
  docker.io:
    endpoint:
      - "https://registry.cn-hangzhou.aliyuncs.com"
      - "https://docker.mirrors.ustc.edu.cn"
EOF

#安装master2-安装
curl -sfL https://rancher-mirror.rancher.cn/rke2/install.sh | INSTALL_RKE2_MIRROR=cn INSTALL_RKE2_VERSION=v1.27.10-rke2r1 sh -

#安装master2-启动
systemctl enable rke2-server
systemctl start rke2-server
systemctl status rke2-server

#在master2节点操作
systemctl stop rke2-server
kubectl delete node master2   *一定要把master2节点删除哈*

#再次启动-报上面的错误,找不到etcd
systemctl start rke2-server```

**一定要把master2节点从集群中删除哈**
**一定要把master2节点从集群中删除哈**
**一定要把master2节点从集群中删除哈**