![Build Status]
Velero Plugins for Scaleway
Overview
This repository contains plugins to support running Velero on Scaleway:
-
Object Store Plugin: Persists and retrieves backups on Scaleway Object Storage. The content of backups includes Kubernetes resources, metadata for CSI objects, and progress of asynchronous operations.
-
It also stores result data from backups and restores, including log files, and warning/error files.
-
Volume Snapshotter Plugin: Creates snapshots from volumes during a backup and restores volumes from snapshots during a restore using Scaleway Block Storage.
- The snapshotter plugin supports volumes provisioned by the CSI driver
sbs-default.csi.scaleway.com.
Environment
You can configure your config with environment variables.
Documentation for scw config
Config management engine is common across all Scaleway developer tools (CLI, terraform, SDK, ... ). It allows to handle Scaleway config through two ways: environment variables and/or config file.
Default path for configuration file is based on the following priority order:
- $SCW_CONFIG_PATH
- $XDG_CONFIG_HOME/scw/config.yaml
- $HOME/.config/scw/config.yaml
- $USERPROFILE/.config/scw/config.yaml
In this plugin, environment variables have priority over the configuration file.
The following environment variables are supported:
Read more about the config management engine at https://github.com/scaleway/scaleway-sdk-go/tree/master/scw#scaleway-config
Compatibility
Below is a listing of plugin versions and respective Velero versions that are compatible:
| Plugin Version |
Velero Version |
| v1.0.x |
v1.14.x |
Filing Issues
If you would like to file a GitHub issue for the plugin, please open the issue on the core Velero repo.
Setup
To set up Velero on Scaleway, follow these steps:
You can also use this plugin to migrate PVs across clusters or create an additional Backup Storage Location.
If you do not have the scw CLI locally installed, follow the Scaleway CLI guide to set it up.
You must use the env variables from the SDK scaleway
Create Scaleway Object Storage Bucket
Velero requires an object storage bucket to store backups in, preferably unique to a single Kubernetes cluster. Create an Object Storage bucket, replacing placeholders appropriately:
Create S3 bucket
Velero requires an object storage bucket to store backups in, preferably unique to a single Kubernetes cluster (see the FAQ for more details). Create an S3 bucket, replacing placeholders appropriately:
BUCKET=<YOUR_BUCKET>
REGION=<YOUR_REGION>
aws s3api create-bucket \
--bucket $BUCKET \
--region $REGION \
--create-bucket-configuration LocationConstraint=$REGION