Uninstalling Cloud Scale Technology
Execute the binary at bin/ with the uninstall option using the following command:
./kubectl-cloudscale uninstall
The output would be displayed as follows:
Are you sure you want to uninstall NetBackup CloudScale? This action cannot be undone. (y/n): y Fetching namespaces from installed Helm charts... Both Cloud Scale and Operator charts found. Proceeding with uninstallation of all associated components. Uninstalling Cloud Scale from namespace: netbackup Uninstalled cloudscale helm chart from the namespace: 'netbackup' Waiting for all pods to terminate in namespace: netbackup All pods in netbackup namespace are terminated. Uninstalling Operator from namespace: netbackup-operator-system Uninstalled operators helm chart from the namespace: 'netbackup-operator-system' Waiting for all pods to terminate in namespace: netbackup-operator-system All pods in netbackup-operator-system namespace are terminated. Deleting PVCs in namespace: netbackup Deleting PVCs in namespace: netbackup-operator-system Waiting for PVCs to be deleted in namespace: netbackup Waiting for PVCs to be deleted in namespace: netbackup-operator-system Deleting namespaces and waiting for deletion... Deleting namespace: netbackup Waiting for netback namespace to terminate... Deleting namespace: netbackup-operator-system Waiting for netbackup-operator-system namespace to terminate... Full uninstallation completed successfully. PVs are not deleted, please delete PVs manually.
To locate and delete any persistent volumes created by the deployment, run the following commands:
$ kubectl get pv
$ kubectl delete pv <pv-name> --grace-period=0 --force
Note:
Some storage drivers may cause persistent volumes to remain stuck in the terminating state.
To resolve this issue, remove the finalizer, using the$ kubectl patch pv <pv-name> -p '{"metadata":{"finalizers":null}} command.