is it possible to re-add a master node (etcd/contr...
# rke2
h
is it possible to re-add a master node (etcd/control plane roles only) after deletion • so remove the node in rancher • run rke2-uninstall.sh • reboot • run the registration url from rancher ui so hostname and IP will remain same - but all data on the node will be removed oh - this cluster does have 3 nodes with etcd/control plane roles and 3 nodes with worker role
c
yes, as long as the node is removed from the cluster and the db cleaned up.
h
kubectl does not show that node any more rancher UI does not show that node any more I have run rke2-uninstall make sure these dirs are empty
Copy code
/var/lib/rancher/ 
/var/lib/kubelet/ 
/etc/rancher/
how can I check confirm the db ?
this does not show that node any more
kubectl -n kube-system get pod -l component=etcd --no-headers -o custom-columns=NAME:.metadata.name
actually this doc helped ... https://www.suse.com/support/kb/doc/?id=000021653
Copy code
/var/lib/rancher/rke2/bin/crictl exec $etcdcontainer etcdctl --cert /var/lib/rancher/rke2/server/tls/etcd/server-client.crt --key /var/lib/rancher/rke2/server/tls/etcd/server-client.key --cacert /var/lib/rancher/rke2/server/tls/etcd/server-ca.crt endpoint health --cluster --write-out=table
Copy code
/var/lib/rancher/rke2/bin/crictl exec $etcdcontainer etcdctl --cert /var/lib/rancher/rke2/server/tls/etcd/server-client.crt --key /var/lib/rancher/rke2/server/tls/etcd/server-client.key --cacert /var/lib/rancher/rke2/server/tls/etcd/server-ca.crt endpoint status --cluster --write-out=table
those commands only show the 2 etcd/control plane nodes now
c
should be good then…
h
thank you!