This section is to describe about the graceful deletion/uninstall of your OpenEBS cluster. OpenEBS cluster has two different storage engine,Jiva and cStor. The deletion for the data from the disks after this operation is different for both of these storage Engine.
Uninstall OpenEBS Gracefully
The recommended steps to uninstall the OpenEBS cluster gracefully is as follows.
Delete all the OpenEBS PVCs that were created. You can check the status of PVC using the following command.
kubectl get pvc -n <namespace>
There should not have any entries of OpenEBS PVC.
Delete all the SPCs (In case of cStor storage engine). You can check the status of SPC using the following command.
kubectl get spc
There should not have any entries of OpenEBS SPC.
Ensure that no OpenEBS volume or pool pods are in terminating state . You can check the running status of Pods using the following command.
kubectl get pods -n <openebs namespace>
Ensure that no
openebscustom resources are present using the following command.
kubectl get cvr -n <openebs namespace>
Ensure to delete OpenEBS related
StorageClass. You can check the status of OpenEBS related StorageClasses using the following command.
kubectl get sc
Delete the OpenEBS namespace either via helm purge or
kubectl delete ns openebsor you can delete the corresponding
kubectl delete -f <openebs-operator.yaml>. You can check the status of OpenEBS namespace using the following command.
kubectl get ns
Uninstalling the OpenEBS doesn't automatically delete the CRDs that were created. If you would like to complete remove the CRDs and the associated objects, run the following commands:
kubectl delete crd castemplates.openebs.io kubectl delete crd cstorpools.openebs.io kubectl delete crd cstorvolumereplicas.openebs.io kubectl delete crd cstorvolumes.openebs.io kubectl delete crd runtasks.openebs.io kubectl delete crd storagepoolclaims.openebs.io kubectl delete crd storagepools.openebs.io kubectl delete crd volumesnapshotdatas.volumesnapshot.external-storage.k8s.io kubectl delete crd volumesnapshots.volumesnapshot.external-storage.k8s.io