hello, i'm trying to provision a RKE2 cluster with...
# general
a
hello, i'm trying to provision a RKE2 cluster with k8s 1.31 in rancher 2.10.1, but it's giving me this error on
rke2-server.service
. Is there a way to delete the data and start over? I've tried deleting the cluster in rancher and deleting files in
/var/lib/rancher /var/lib/kubelet /etc/rancher/ /etc/rancher/ /etc/cni
, but every time i try to create the cluster again i still get the same error
Copy code
eb 19 12:44:43 test-k8s-master-01 rke2[5035]: time="2025-02-19T12:44:43-08:00" level=info msg="etcd temporary data store connection OK"
Feb 19 12:44:43 test-k8s-master-01 rke2[5035]: time="2025-02-19T12:44:43-08:00" level=info msg="Reconciling bootstrap data between datastore and disk"
Feb 19 12:44:43 test-k8s-master-01 rke2[5035]: time="2025-02-19T12:44:43-08:00" level=fatal msg="Failed to reconcile with temporary etcd: bootstrap data already found and encrypted with different token"
h
I have tried in past
rke2-uninstall.sh
script followed by deleting
/etc/rancher
,
/var/lib/rancher
and
/var/lib/kubelet
and it seems to do the job... you may want to review this doc https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/manage-clusters/clean-cluster-nodes?k8s-distro=RKE2#removing-rke2
a
hm ok, thanks. i've only tried
system-agent-uninstall.sh
, didn't realize there is another uninstall script
h
On my cluster (RKE2 v1.31.5) it is here:
/usr/bin/rke2-uninstall.sh
a
gotcha, thank you
h
this will completely remove all RKE2 - on the node you run it on so if you have 3 nodes; you have to run it on all 3
a
interesting, so you just run it on 1 node and it will reach out to the other 2 also?
h
no you have to run it on all nodes
a
oh ok
so i just started over, but the provisioning is stuck on "
"Waiting for cluster agent to connect"
have you seen this before?