Upgrade Velero for snapshots
This topic describes how to upgrade Velero for Replicated snapshots.
Replicated KOTS is available only for existing customers. For supporting installations into customer managed clusters, we recommend Helm. For more information, see About Helm Installations with Replicated.
KOTS is a Generally Available (GA) product for existing customers. For more information about the Replicated product lifecycle phases, see Support Lifecycle Policy.
Overview
Velero 1.17 and later uses Kopia as the default uploader for file-system backups. If you upgrade from Velero 1.16 or earlier, verify that your storage destination is compatible with Kopia before you upgrade. Some storage destinations, such as the Local Volume Provider (LVP), are not compatible with Kopia. Migrate these destinations before the upgrade.
For more information about snapshot troubleshooting, see Troubleshoot Snapshots.
Before you upgrade
Complete the following prerequisites before you upgrade Velero:
-
Check the current storage destination type. If the storage location uses LVP, migrate to a Kopia-compatible destination before you upgrade. For more information, see Migrate from Local Volume Provider (LVP) to a Kopia-compatible destination.
-
Take a snapshot of the application before you upgrade. This snapshot lets you restore the application if the upgrade fails.
-
Install the Velero plugin for the target storage destination, if needed. For example, verify that the plugin image is available in the registry for air-gapped environments. For more information, see Configure Other Storage Destinations.
Migrate from local volume provider (LVP) to a Kopia-compatible destination
LVP is not compatible with Kopia. If the storage location uses LVP, migrate to a Kopia-compatible destination before you upgrade to Velero 1.17 or later.
LVP backups created on Velero 1.16 and earlier are not restorable on Velero 1.17 and later. Replicated recommends that you migrate to a Kopia-compatible destination before you upgrade.
In-place reconfiguration from LVP to a filesystem-based Minio deployment is not supported. The minio-enabled-snapshots=false setting persists, so reconfiguring to filesystem Minio in the Admin Console does not enable a Kopia-compatible object store.
Replicated recommends one of the following options:
- Reinstall KOTS with
--with-minio=true. This installs a Minio object store that is compatible with Kopia. - Reconfigure the storage location to use an external S3-compatible object store, such as Amazon S3, Google Cloud Storage, Azure Blob Storage, or another S3-compatible provider. Install the target Velero plugin before you reconfigure the storage location. For more information, see Configure Other Storage Destinations.
For more information about LVP storage issues after upgrade, see LVP storage location is unavailable after upgrade in Troubleshoot Snapshots.
kURL installations
On kURL clusters, the kURL installer upgrades Velero. Do not upgrade Velero manually or reinstall KOTS with --with-minio=true. Those steps are for existing cluster installations.
To check whether a kURL cluster uses LVP, run the following command:
velero backup-location get
If the provider of the default storage location is replicated.com/hostpath, replicated.com/nfs, or replicated.com/pvc, the cluster uses LVP.
The kURL installer does not upgrade Velero to 1.17 or later while the installer spec sets kotsadm.disableS3: true. Clusters first installed with kotsadm.disableS3: true can't use the automatic migration, even after you remove the flag.
To migrate a kURL cluster from LVP, use one of the following options before you upgrade:
- Reconfigure the same Host Path or Network File System (NFS) destination in the Admin Console. This works if the cluster runs the MinIO add-on and KOTS 1.131.6 or later.
- Reconfigure the storage location to use an external S3-compatible object store. For more information, see Configure Other Storage Destinations.
- Let the kURL installer migrate the storage location to the in-cluster object store during the upgrade. This requires kURL v2026.09.20-0 or later. The migration changes only the storage location, so snapshots taken before the upgrade are not restorable afterward. If you need them, take a backup to an external location first. For the installer's requirements, see Upgrading to Velero 1.17 or Later in the kURL documentation.
If the kURL installer migrated the storage location, reconfigure the storage destination after the upgrade. The in-cluster object store is not suitable for disaster recovery. If the cluster runs the MinIO add-on, re-enter the previous Host Path or NFS destination. Otherwise, use an external S3-compatible object store.
Upgrade one version at a time
Replicated recommends that you upgrade Velero one version at a time. For example, if you are running Velero 1.15, upgrade to Velero 1.16 first, verify that snapshots work, and then upgrade to Velero 1.17. Upgrading incrementally reduces the risk of incompatible custom resources or storage locations.
To upgrade Velero, follow the upgrade instructions for the target Velero version in the Velero documentation. KOTS does not provide an Admin Console button or a KOTS CLI command to upgrade Velero. The cluster administrator performs the upgrade manually. For kURL installations, see kURL installations.
Verify the upgrade
After you upgrade Velero, verify that the upgrade is successful:
-
Run
velero versionto confirm the expected Velero version. -
Check the status of the
BackupStorageLocation:velero backup-location getThe BackupStorageLocation must be in an
Availablestate before you create backups. If it is not available, describe the BackupStorageLocation to view the error:kubectl describe backupstoragelocation <NAME> -n velero -
Check the status of the
BackupRepositoryCRs:kubectl get backuprepositories -n veleroAll
BackupRepositoryCRs must be in aReadystate before you create backups. If a CR is not ready, describe the CR to view the error:kubectl describe backuprepository <NAME> -n velero -
Create a test backup and verify that it completes successfully. For more information, see Create and Schedule Backups.
Restore existing Restic backups
Velero 1.17 and 1.18 can restore Restic backups created on Velero 1.16 and earlier, except backups stored in an LVP destination. On kURL clusters, see kURL installations to check whether the cluster uses LVP. To restore an existing Restic backup, use the same storage location and credentials that you used to create the backup.