Get started
What you need
- A Vinera account and a Protect workspace with the Kubernetes module. Your Vinera contact opens the workspace and turns on the Kubernetes module. You then sign in at https://protect.onevinera.com with your Vinera account.
- A Kubernetes cluster you can reach with
kubectlandhelm. The agent's install command is a Helm command you run against the cluster. - A CSI driver that supports volume snapshots, if you want to back up volume data with snapshots.
- The Kubernetes backup engine in the cluster, version 1.18, with CSI snapshot support, the data mover and the Azure and S3 plugins. If it is not installed yet, the Connect cluster dialog shows how to check for it and the command to install it. The agent does not install it for you.
- Outbound HTTPS (port 443) from the cluster to
protect.onevinera.com. No inbound ports are needed. - Your own object storage: an Azure Blob Storage container with its storage account key, or an S3 or S3-compatible bucket with its access key and secret key. A container used only for backups is best.
Step 1: Connect your cluster
- Open Clusters and click Connect cluster.
- Enter a Cluster name, for example
Production AKS, and click Generate join command. - If the backup engine is not installed yet, use the check and install commands shown in the same dialog.
- Run the Helm command in your cluster. It contains a one-time join code that is shown only once and is valid for 24 hours. If it expires or gets lost, generate a new one from the cluster list.
- Wait for the cluster to show as connected, with its worker nodes and last heartbeat.
The agent runs as non-root in its own namespace. It reads Secrets only in its own namespace and in the backup engine's namespace, never cluster-wide.
When a newer agent is available, the cluster shows Upgrade available; click Upgrade for the command. Your settings are kept and the agent does not need to rejoin. Removing a cluster with Remove cuts the agent's access at once and shows the commands to uninstall it. The backup engine, your backups and your storage locations in the cluster are not deleted.
Step 2: Add a storage location
-
Select the cluster in the cluster switcher at the top right.
-
Open Storage Locations and click New storage location.
-
Enter a Name, choose the Type and enter the details:
- Azure Blob: Storage account, Container and Storage account key;
- S3 / S3-compatible: Bucket, Region, Endpoint (leave empty for AWS), Access Key and Secret Key. Turn on Path style if your storage needs it.
Optionally, set a Subpath.
-
Click Create. The status changes to Available once the cluster has validated access to the bucket.
The keys are passed to the agent and stored only in a Secret in your cluster. Vinera does not keep them.
Step 3: Create your first policy
- Open Policies and click New policy.
- Enter a Policy name (lowercase letters, digits and hyphens), for example
shop-daily. - Choose the namespaces to back up.
- Choose a Schedule: Every 6 hours, Daily at 02:00, Sundays at 02:00, or Custom cron with a five-field cron expression such as
0 2 * * *. - Choose the Volume data option. CSI snapshot + copy to storage location (recommended) copies volume data to your bucket.
- Choose the Storage location and the Retention: 7, 30 or 90 days.
- Optional: under App hooks, click Add app hook to prepare a database before its volume is captured. Pick a hook, a namespace and, optionally, pod labels such as
app=postgres. - Under After creation, you can choose Start paused and enable it manually later.
- Click Create policy.
Step 4: Run a backup
- To run a policy now, click Run now on Policies.
- For a one-off backup, open Backups, click Back up now, choose the namespaces, volume data option, storage location and retention (1, 7, 30 or 90 days), and click Start backup.
Each backup run appears on Backups as a restore point, with its consistency, scope, duration, size, errors and warnings, and expiry date. Click a row to see its summary and logs.
Step 5: Restore a namespace
We recommend a test restore on day one, so you know it works before you need it.
- Open Backups, find the restore point and click Restore.
- For each namespace, set where to restore it. By default it goes to a new namespace named
<namespace>-restore-<MMDD>. Choose the original namespace to restore in place; then only missing resources are added back. - Check the Preflight. It lists anything blocking the restore and any warnings.
- Click Start restore.
Follow progress on Restores. For a first test, restore into a new namespace and check the data next to the live one.
To move namespaces to another connected cluster, use Migrations instead. See What is protected for how it works and its limits.