RKE2 uninstallation
Purpose
The purpose of this document is to uninstall the Kubernetes distribution RKE.
Step 1: uninstall the RKE2 and clean up files used by RKE2
you can run following command on control plane and worker node.
cd /usr/bin/
Run the following command:
rke2-uninstall.sh
Step 2: Generic step for both Control-Plane and Worker Nodes.
Clean up the existing installation + volume data ( DATA deletion warning ).
rm -rf /var/lib/rancher /etc/rancher /var/lib/longhorn/ /etc/cni /opt/cni /var/openebs/;
Step 3: Reboot the system
reboot