Manage the KubeSphere Backup component
Describes how to manage the KubeSphere Backup component.
This section describes how to manage the KubeSphere Backup component.
Prerequisites
You have registered an account.
You have created a lite cluster and imported a Kubernetes cluster.
Enable the backup component
Log in to the KubeSphere Cloud platform with your account.
In the upper-right corner, hover your cursor over the username area and click Console from the drop-down list.
In the navigation pane on the left, click Resource Management.
On the Kubernetes Clusters tab page, click the target cluster to go to the cluster details page.
On the Components tab page, click On next to Backup and Recovery.
On the Install KubeSphere Backup Component dialog box, click Confirm.
common:NOTE
It takes several minutes to install the KubeSphere Backup component. After the component is installed, you can back up and recover data of clusters.
Suspend the backup component
If you want to suspend the backup component, perform the following steps.
Log in to the KubeSphere Cloud platform with your account.
In the upper-right corner, hover your cursor over the username area and click Console from the drop-down list.
In the navigation pane on the left, click Resource Management.
On the Kubernetes Clusters tab page, click the target cluster to go to the cluster details page.
On the Components tab page, click More > Suspend.
On the Suspend KubeSphere Backup Component dialog box, click Confirm and suspend > Suspend.
common:NOTE
After suspending the KubeSphere Backup component, you cannot use the backup and recovery features, but can still view your operation history.
Uninstall the backup component
If you want to uninstall the backup component, perform the following steps.
Log in to the KubeSphere Cloud platform with your account.
In the upper-right corner, hover your cursor over the username area and click Console from the drop-down list.
In the navigation pane on the left, click Resource Management.
On the Kubernetes Clusters tab page, click the target cluster to go to the cluster details page.
On the Components tab page, click More > Uninstall.
On the Suspend KubeSphere Backup Component dialog box, click Forcibly uninstall the component > Uninstall.
common:NOTE
Exercise caution when you uninstall the component, because you will not be able to use the backup and recovery features.
Manually clear backup resources
In some cases, for example, cluster disconnection, uninstallation may fail. To manually clear the backup resources, refer to the following steps.
common:NOTE
As some CRDs rely on controllers' workloads, you need to delete workloads after deleting CRDs.
Run the following command to delete all CRDs.
kubectl delete crd backups.velero.io backupstoragelocations.velero.io deletebackuprequests.velero.io downloadrequests.velero.io podvolumebackups.velero.io podvolumerestores.velero.io resticrepositories.velero.io restores.velero.io schedules.velero.io serverstatusrequests.velero.io volumesnapshotlocations.velero.io apphooks.ys.jibudata.com veleroexports.ys.jibudata.com veleroimports.ys.jibudata.com
Run the following command to delete all workloads.
kubectl -n kubesphere-cloud-system delete deployment/agent-operator deployment/amberapp-controller-manager deployment/data-mover-controller-manager deployment/stub deployment/velero daemonset/restic