Velero
-
Review the system requirements of the add-on to make sure you have enough resources to install it.
-
(Optional) Perform manual scaling of worker node groups or set up automatic scaling.
-
Prepare storage in the VK Object Storage service where the backups created by Velero will be stored. To do this:
- Create a bucket with the
Hotboxstorage class. - Create an account in VK Object Storage and save the key ID (Access Key ID) and the secret key (Secret Key) on your device.
Use these credentials when installing the add-on.
- Create a bucket with the
The Velero add-on offers several installation options.
-
Install the add-on:
Management console-
Go to the VK Cloud management console.
-
Select the project where the desired cluster is located.
-
Go to the Kubernetes Clusters → Kubernetes Clusters section.
-
Click the name of the desired cluster.
-
Go to the Add-ons tab.
-
Click Install on the
veleroadd-on card and click the Install add-on button. -
If needed, edit:
- the selected version;
- the application name;
- the name of the namespace where the add-on will be installed.
-
Configure the add-on code to store the created backups in VK Object Storage. To do this, add the following parameters:
Parameter
Value
bucket, in theconfigurationblockName of the created bucket
aws_access_key_id, in thecredentialsblockKey ID (
Access Key ID) of the VK Object Storage accountaws_secret_access_key, in thecredentialsblockSecret key (
Secret Key) of the VK Object Storage account -
If needed, make additional changes to the add-on configuration code.
-
Click the Install add-on button.
The add-on installation will begin in the cluster. This process may take a long time.
-
-
Make sure the add-on is installed with the correct VK Object Storage storage settings:
-
Connect to the cluster using
kubectl. -
Make sure the pod on which Velero is located is running, using the command:
kubectl -n velero get podsIn the command output, the pod status should be
Running. -
Make sure the specified VK Object Storage storage is available to Velero, using the command:
kubectl -n velero get backupstoragelocationsIn the command output, the configuration state displayed in the
PHASEcolumn should beAvailable.
-
-
(Optional) Review the official Velero documentation.
-
(Optional) Review the how-to guides on working with Velero.
Editing the add-on code is applicable for standard installation and installation on dedicated worker nodes.
The full add-on configuration code along with field descriptions is available on GitHub.
After editing the code, continue the add-on installation.