VK Cloud logo

Velero

Preparatory steps

  1. Review the system requirements of the add-on to make sure you have enough resources to install it.

  2. (Optional) Perform manual scaling of worker node groups or set up automatic scaling.

  3. Prepare storage in the VK Object Storage service where the backups created by Velero will be stored. To do this:

    1. Create a bucket with the Hotbox storage class.
    2. 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.

Installing the add-on

The Velero add-on offers several installation options.

  1. Install the add-on:

    1. Go to the VK Cloud management console.

    2. Select the project where the desired cluster is located.

    3. Go to the Kubernetes Clusters → Kubernetes Clusters section.

    4. Click the name of the desired cluster.

    5. Go to the Add-ons tab.

    6. Click Install on the velero add-on card and click the Install add-on button.

    7. If needed, edit:

      • the selected version;
      • the application name;
      • the name of the namespace where the add-on will be installed.
    8. 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 the configuration block

      Name of the created bucket

      aws_access_key_id, in the credentials block

      Key ID (Access Key ID) of the VK Object Storage account

      aws_secret_access_key, in the credentials block

      Secret key (Secret Key) of the VK Object Storage account

    9. If needed, make additional changes to the add-on configuration code.

    10. Click the Install add-on button.

      The add-on installation will begin in the cluster. This process may take a long time.

  2. Make sure the add-on is installed with the correct VK Object Storage storage settings:

    1. Connect to the cluster using kubectl.

    2. Make sure the pod on which Velero is located is running, using the command:

      kubectl -n velero get pods

      In the command output, the pod status should be Running.

    3. Make sure the specified VK Object Storage storage is available to Velero, using the command:

      kubectl -n velero get backupstoragelocations

      In the command output, the configuration state displayed in the PHASE column should be Available.

  3. (Optional) Review the official Velero documentation.

  4. (Optional) Review the how-to guides on working with Velero.

Editing the add-on configuration code during installation

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.

Was this article helpful?