Breadcrumbs

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.

Bash
cd /usr/bin/

Run the following command:

Bash
rke2-uninstall.sh

Step 2: Generic step for both Control-Plane and Worker Nodes.

Clean up the existing installation + volume data ( DATA deletion warning ).

Bash
rm -rf /var/lib/rancher  /etc/rancher /var/lib/longhorn/ /etc/cni /opt/cni  /var/openebs/;

Step 3: Reboot the system

Bash
reboot