Install Backup Plugin
To support Kurator’s unified backup, restore, and migration features, it’s imperative to first configure the backup plugin for Fleet. This guide will walk you through configuring the Velero-based backup plugin for Fleet, laying the groundwork for Kurator’s unified backup, restore, and migration capabilities.
Prerequisites
1. Fleet Manager Setup
Set up the Fleet manager by following the instructions in the installation guide.
2. Configuring Object Storage for Velero
Kurator’s backup relies on Velero. Hence, Object Storage is essential to store Kubernetes resources. We support various object storage options. In this guide, we provide detailed usage instructions for the following configurations:
-
Minio: Install a Minio service in the current Kurator host cluster for local validation. Refer to the installation guide.
-
Cloud Service Provider’s Object Storage (using Huawei Cloud OBS as an example): Purchase or use an existing object storage service.
Note: The Minio method is intended only for validation purposes. For production environments, it’s recommended to use cloud service providers’ storage services.
After choosing the storage method, create a secret with the access details. Use this secret’s name as a parameter for the fleet.
For Minio: Minio installation guide.
For cloud storage using AK and SK (e.g., OBS):
For more configuration options, please refer to the Fleet API.
3. Secrets and Setup for Attached Clusters
Create a Fleet with the Backup Plugin Enabled
Use Minio
If you opt to use Minio, apply the following configuration:
Note: The
endpoint
(http://172.18.255.200:9000
) infleet-minio.yaml
is depends on your minio service ip, check your minio service ip in Minio installation guide.
Use OBS
If you choose to use OBS, apply the following configuration:
Fleet Backup Plugin Configuration Explained
Let’s delve into the spec
section of the above Fleet:
-
clusters
: Contains the twoAttachedCluster
objects created earlier, indicating that the backup plugin will be installed on these two clusters. -
plugin
: Thebackup
indicates the description of a backup plugin. Currently, it only contains storage related configurations. For more configuration options, please refer to the Fleet API.Within this storage configuration, users should ensure that the details in the location field are accurate. This information primarily differentiates the configurations in fleet-obs.yaml from fleet-minio.yaml. Additionally, the secretName refers to the name of the secret that was established earlier within the same namespace.
Verify the Installation
To ensure that the backup plugin is successfully installed and running, follow the steps below:
1. Check Velero Pods
Run the following commands:
Initially, you should observe:
After waiting for about 2 or more minutes, check again to ensure all pods are in the Running
state:
2. Confirm Connection to the Object Storage
Run the following commands to ensure backup has successfully connected to the object storage:
When the PHASE
for all is Available
, it indicates that the object storage is accessible:
Cleanup
This section guides you through the process of cleaning up the fleets and plugins.
1. Cleanup the Backup Plugin
If you only need to remove the backup plugin, simply edit the current fleet and remove the corresponding description:
To check the results of the deletion, you can observe that the Velero components have been removed:
If you wish to reinstall the components later, you can simply edit the fleet and add the necessary configurations.
2. Cleanup the Fleet
When the fleet is deleted, all associated plugins will also be removed:
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.