Migrating workloads between Kubernetes clusters with Velero: the short answer
Moving applications to a new cluster, a new Kubernetes version or a new site is usually a question of how much state has to travel with the workloads. Velero backup and restore moves Kubernetes resources and persistent volumes, but the effort depends on four things: how storage classes map between the source and target, how identity and access are rebuilt, how volume data is moved, and how the cutover is planned and rehearsed. Velero is not a shortcut around those decisions. It is the mechanism that carries the resources and data once you have made them.
Velero is licensed under Apache-2.0, the same license as Kubernetes itself, and it is formerly known as Heptio Ark. It runs as a server component on the cluster and is operated from a command-line client on your workstation. The documented use cases include migrating resources to other clusters and replicating production clusters to development and test environments, and it runs with a public cloud provider or on premises. That makes it a practical tool for both a version move and a site move, provided the target cluster can reach the same backup storage location. Confirm the supported Velero version against your Kubernetes version and your storage drivers before you plan the work, since compatibility is set by the release you choose.
The planning question to answer first is which of your workloads depend on cluster-specific objects such as storage class names, ingress classes, service accounts, secrets tied to external identity, and node selectors. Those are the items that most often break a restore into a working but misconfigured application. Ask your team to inventory them per namespace before choosing an approach, and decide early whether volume data will move through snapshots or through file system backup. The second decision is cutover: whether you run both clusters in parallel, how traffic and DNS switch, and how you roll back if the restored application misbehaves. Those choices, more than the Velero commands, set the duration and the risk of the project.
Which Kubernetes resources and volumes map cleanly to a new cluster
This table compares how each common source resource or volume type moves to a new cluster with Velero, and what the target side needs. Read each row as a checklist item: the migration notes name what to confirm on the target before the restore runs. The main takeaway is that namespaced workloads move easily, while storage method, hostPath, secrets and target policy settings need explicit decisions.
| Source item | Migration path with Velero | Target-side equivalent and notes |
|---|---|---|
| Namespaces and Deployments, Services, ConfigMaps | Backed up as Kubernetes API objects and restored into the target cluster, usually with namespace mapping. | Confirm the target API versions serve these objects. Services with cluster-specific IPs or load balancer annotations may need edits after restore. |
| Secrets | Stored in the backup as objects, so they move with the namespace when included in the filter. | Secrets are stored unencrypted in etcd by default. Confirm encryption at rest on the target and decide how credentials are rotated after cutover. |
| PVCs with CSI snapshots | Volume snapshots are taken through a supported CSI driver and restored on the target as new volumes. | Snapshots only restore where the target runs a compatible CSI driver and snapshot class. Confirm the snapshot class exists on the target. |
| PVCs using File System Backup | Data is copied from the mounted file system to object storage with Kopia-based modules, through node-agent pods. | Requires object storage as the backup target and needs root and sometimes privileged node-agent pods. Confirm the target permits those pods. |
| PVCs without a running pod | File System Backup only reads volumes mounted by a running pod, so unmounted claims need a staging pod. | Plan a staging pod for each unmounted claim before the backup window, and test the restore path for it. |
| hostPath volumes | Not supported by File System Backup. Data on node paths is not captured by this method. | Treat node-local data as a separate migration task, such as copying files directly or moving the data into a supported volume type first. |
| Storage class names | Backups record the source storage class name on each claim. | Storage class names often differ between clusters. Map source classes to target classes in the restore configuration and confirm capacity and access modes. |
| Pod Security levels | Pod specs restore as written, including security context settings. | Pod Security Admission is set per namespace. Confirm the target namespace enforces a level that allows the workloads, or pods will be rejected at restore. |
| Cluster-scoped objects and CRDs | Cluster-scoped resources and custom resource definitions must be included explicitly in the backup scope. | Confirm the target has the same CRDs and operator versions installed before restoring custom resources, or restores will fail or be ignored. |
Which Velero paths move data, and which ones need a different approach
CSI volume snapshots are the path to check first when persistent volumes must follow the application to a new cluster. Velero asks the storage layer to snapshot each volume, so the data never passes through the Velero node agent. This path depends on what the source and target storage can do, not on Velero alone.
- Driver support: Confirm that the source cluster's CSI driver supports volume snapshots and that a matching VolumeSnapshotClass exists.
- Restore target: Confirm that the destination cluster has a CSI driver that can create volumes from those snapshots, usually in the same storage family.
- Storage class mapping: Plan which destination StorageClass receives each restored volume, since the source class may not exist on the new site.
- Block storage: Velero also supports snapshots on certain block storage providers, so check the provider list in the Velero documentation before choosing a different path.
- Cross-site limits: Snapshots usually stay inside one storage system or provider, so a site-to-site move may need a different path.
Before committing to this path, ask the platform team to run a test snapshot and restore into a non-production namespace and confirm the restored volume mounts and contains the expected data. The official File System Backup documentation is the natural next read for the alternatives.
File System Backup (FSB) copies volume data by reading the file system through the node agent, using modules from the open-source Kopia backup tool. It works where snapshots are unavailable, but it has strict requirements that affect the design of both clusters. The Velero file system backup documentation sets out these limits.
- Object storage only: FSB supports only object storage as the backup target. Providers not explicitly listed must be S3-compatible.
- Node agent privileges: The node agent needs root and sometimes privileged pods, which the security team must approve under the cluster's Pod Security settings.
- Live file system: FSB backs up the live file system, so data written during the copy may be less consistent than with a snapshot. Plan application quiesce steps for databases.
- Mounted volumes only: FSB works only on volumes mounted by a running pod, so unmounted PVCs need a staging pod.
- hostPath not supported: Volumes of type hostPath are not supported, so workloads that use them need a separate approach.
Confirm these requirements against both clusters' security policies and the exact Velero version before the pilot, because node agent and storage behavior can change between releases. Treat the staging pods and privilege exceptions as part of the migration work.
Velero's documentation warns that File System Backup uses a static, common encryption key, so anyone with access to the backup storage can decrypt the backup data. This is a property of the data path, and it changes who must be trusted during a migration. Object storage access becomes equivalent to data access for the backed-up volumes.
- Storage access: Limit bucket credentials to the Velero service identity and the staff who run the migration, and review those grants before and after the cutover.
- Data classification: Decide whether the volumes contain regulated or sensitive data that the shared key model cannot protect to the required standard.
- Bucket controls: Use encryption at the storage layer, access logging and retention rules on the backup bucket, which are separate from Velero's own key.
- Cleanup: Plan deletion of temporary migration backups once the restore is verified, so copies do not outlive the project.
- Risk acceptance: Record the decision in writing when FSB is chosen for sensitive data, so the security and compliance owners agree to it.
Ask the security team whether this key model is acceptable for each data class before any FSB backup runs. Confirm the current key handling in the Velero documentation for your version, since the warning is the vendor's statement.
A resource-only restore moves Kubernetes objects such as Deployments, Services, ConfigMaps and custom resources without copying volume data. It suits stateless applications, or stateful applications where the data will be loaded by another method, such as a database replica or a logical dump. This path has no volume storage or node agent requirements, which makes it the simplest option to test.
- Backup scope: Back up the namespaces and resource types needed, and exclude volume data from the backup so the set stays small.
- Restored state: Expect PVCs to be recreated as empty claims unless another path fills them, so workloads may start with no data.
- Secrets and config: Check how Secrets are handled, since they are stored unencrypted in etcd by default and should be recreated under the destination's controls.
- Cluster-specific fields: Review restored objects for fields tied to the source cluster, such as node selectors, storage class names and ingress hosts.
- Ordering: Restore dependencies such as CRDs and namespaces before the objects that use them.
Before cutover, ask the application owners to confirm which data sources the restored workloads need and how each one will be populated. Verify the restored state in a rehearsal environment rather than assuming an empty claim is acceptable.
How to plan the cluster move from inventory to decommission
This sequence turns a Velero-based migration into a controlled series of checks, from inventory and a rehearsed restore through cutover, with a rollback point kept until the source cluster is no longer needed. Each step produces a record the migration owner can review before the next one begins.
Inventory namespaces and cluster-scoped objects
The platform team lists every namespace in the source cluster and sorts it into application, shared service or system. They then record cluster-scoped objects that workloads depend on, such as CustomResourceDefinitions, StorageClasses, IngressClasses, ClusterRoles, admission webhooks and priority classes, along with the owning team for each. The output is a migration inventory that names what moves, what is recreated by the installer and what stays behind. The step is done when application owners have signed off on their rows.
Build the target cluster and install Velero
The platform team builds the target cluster with the Kubernetes version, CNI, ingress, storage drivers and identity integration it will run in production, using the same hardening baseline as the source. They install the Velero server with a backup storage location in object storage the target can reach, and install the command-line client locally. The output is a target cluster that can see the backup location and reports a healthy Velero installation. Confirm the Velero and Kubernetes versions against the project's compatibility notes before installing.
Run a pilot restore into a non-production namespace
The team takes a fresh backup of one representative application from the source and restores it into a non-production namespace on the target cluster. They check that pods start, Services and Ingress objects are created, Secrets and ConfigMaps are present, and PersistentVolumeClaims bind. Any missing cluster-scoped dependency found here is added to the inventory. The step closes when the pilot application passes its functional checks and the gaps list is empty or assigned.
Map storage classes and set resource filters
Engineers define how each source StorageClass maps to a target StorageClass, including the storage backend, volume mode and access mode. They configure Velero to match, using restore mappings for the storage class and resource filters that exclude node-specific, generated or cluster-owned objects. Volume data movement is chosen per volume: CSI snapshots where the driver supports them, or File System Backup where it does not. The output is a reviewed mapping file and filter set that the rehearsal will use.
Rehearse the full restore and test rollback
The team runs a full rehearsal in a staging copy of the target, restoring the complete application set from a backup taken at the planned cutover window. They measure the restore against the runbook, verify data in restored volumes with application-level checks, and confirm that restored backups can be read from the storage location. They also confirm the rollback point: the source cluster remains running, its data is frozen or still writable, and the DNS record can be reverted. Each finding is logged and the runbook is updated before the production run.
Run the parallel period and verify data
Applications run in both clusters for a defined validation period agreed in the migration plan. Where data is written on the source, the team decides whether the target is read-only, mirrored by the application, or resynced during cutover, and records that decision per service. Application owners compare outputs, logs and business checks between the two environments. The step is complete when owners sign off that the target matches expected behavior and data.
Cut over traffic and DNS
During the agreed window, the team takes a final backup, restores it to the target, freezes writes on the source where needed, and switches traffic by changing DNS records, load balancer targets or ingress routing. TTLs are lowered ahead of time so the change propagates predictably. Engineers watch error rates, pod health and volume state for each service as traffic moves. The output is a cutover log with the time of each change and a confirmed working path to the target.
Decommission the source after the rollback window closes
Once the agreed rollback window has passed and owners confirm the target is stable, the team takes a final backup of the source for retention, removes Velero schedules that point at the old cluster, and deletes workloads and volumes in stages. Backup retention and access rules for the archived source data are documented, since File System Backup uses a static encryption key and anyone with access to the backup storage can decrypt it. The step ends with a decommission record that confirms what was removed and where the retained backups are kept.
How the backup and restore path moves data between clusters
The target cluster never talks to the source cluster directly. The Velero server on the source cluster writes a backup to a backup storage location, which is an object storage bucket both clusters can reach. The Velero server on the target cluster reads the same bucket, discovers the backup's Kubernetes resource manifests and recreates them in the new cluster. Volume data follows a second path. If the storage supports snapshots, Velero restores volumes from snapshot references in the backup. If the backup used File System Backup, the data is pulled back from the bucket by Kopia data movement modules on the target. Before the first test, confirm that the target Velero is configured with the same bucket, prefix and region, and that the backup appears in velero backup get on the target. Velero's own documentation for File System Backup says the encryption key is static and shared, so reaching the bucket is the same as reading the data. Treat the bucket's access policy, credentials and network path as a trust boundary between the two clusters, with each side's service account limited to the prefix it needs.
Restore scope is controlled at restore time, not only at backup time. Includes and excludes on namespaces and resource types decide which objects come across, so a migration can move a set of applications while leaving behind cluster-scoped objects, leftover test data or resources the new cluster already manages through GitOps. Namespace mapping lets a restore place an application into a different namespace name on the target, which matters when the destination already uses a naming scheme. Storage class mapping is set through a config map that Velero reads during restore, and it rewrites the storage class on each persistent volume claim so that workloads land on storage that exists in the target cluster. Plan a written mapping table covering every storage class in the backup, the target equivalent and any volume that cannot be mapped. Confirm the exact configuration keys and their behavior for your Velero version in the Velero documentation before relying on them.
How source and target clusters connect through the backup location
The flow starts with the Velero server and node-agent on the source cluster, which write backup data and resource manifests to an object storage backup location. The target cluster runs its own Velero server, pointed at the same location, and restores from it. The backup storage sits inside a trust boundary because anyone who can read it can read the backup data, and File System Backup uses a static, common encryption key. Check that the target sees the same backup, that storage access is locked down, and that the cutover phase only starts after a verified restore.
Source and target clusters share one object storage backup location inside a marked trust boundary.
What makes a cluster move take longer
Moving workloads with Velero is rarely limited by the backup and restore commands themselves. The drivers below sit around them: how much data moves, which storage and resources Velero cannot carry cleanly, and which outside dependencies must cut over at the same time as the workloads.
Volume count and size
Each persistent volume adds a data path to the plan. Snapshot-capable volumes on a matching CSI driver move quickly, while volumes that need File System Backup depend on the live pod mounting them and on object storage bandwidth between source and target. Inventory every PVC by namespace, size, access mode and change rate, and ask whether the target site can absorb the restore traffic without slowing production. Volumes that are not mounted by any running pod need a staging pod before they can be included.
File system backup docshostPath and unsupported storage
Volumes backed by hostPath cannot be moved with File System Backup, and storage from providers without a snapshot path needs a separate decision. Data on individual nodes, local disks or proprietary arrays may have no clean export path at all. Identify these volumes early, decide whether the application can be rebuilt from its source of truth, and confirm with the target storage vendor which copy method is supported before scheduling any cutover window.
CRDs and operators with their own state
Custom resources and the operators that reconcile them often hold state that a plain resource restore does not recreate. A database operator may depend on backup configuration, a certificate operator on an issuer that must exist first, or a service mesh on CRDs that must be installed before workloads reference them. Check which operators run in the source cluster, install matching CRD versions on the target first, and test that restored custom resources reconcile rather than sit in an error state.
Identity and secret migration
Restored Secrets carry values, but not necessarily the keys, service accounts and identity bindings that made them useful. Workloads that authenticate through projected tokens, workload identity or external secret stores may fail on the target even when every object restored. Decide which Secrets are copied, which are re-issued from the secret store, and how encryption at rest keys differ between clusters. Treat Secrets as a separate review item, since Velero backups that include Secrets are only as protected as the backup storage.
Network and DNS cutover dependencies
A restored application still needs traffic. Ingress hostnames, load balancer addresses, external DNS records, TLS certificates, network policies and firewall rules must point at the target before users move. Some of these depend on the cluster rather than the workload, so they are easy to miss. Map every hostname and external dependency per application, agree on who changes DNS and when, and plan how the old cluster stays reachable for rollback until the new one has been checked.
Parallel environments and version gaps
The more environments that must run during the move, the more the plan multiplies. Staging, test and production clusters may each need a restore, a set of test runs and a separate schedule, and a version jump between source and target adds API deprecation checks. Confirm the Kubernetes version gap against the version skew policy, count how many environments the team can verify in sequence, and decide which clusters are migrated first so that shared services do not block the rest.
What drives the cost and duration of the migration
This table lists each cost component of a Velero-based cluster migration, who typically carries it, whether it is one-time or recurring, and what pushes it up or down. Read it before requesting a quote so you can compare scopes on the same basis.
| Cost component | One-time or recurring | What drives it up or down |
|---|---|---|
| Inventory of namespaces, CRDs and volumes | One-time | Number of namespaces, undocumented dependencies, and how many PVCs use hostPath or unmounted claims |
| Target cluster build | One-time | Distribution choice, node count, network and ingress design, and whether the target is in a new site or version |
| Velero setup and backup storage | One-time setup, recurring storage | Object storage size, retention schedule, and whether CSI snapshots or File System Backup are used |
| Volume data movement | One-time per migration run, may repeat for rehearsals | Total data volume, network path between sites, and whether the workload must be quiesced for consistent copies |
| Storage class and resource mapping | One-time | Count of storage classes that differ between clusters and the number of manifests that need edits |
| Integration and identity rework | One-time | DNS, certificates, SSO clients, secrets stores and CI/CD pipelines that point at the old cluster |
| Parallel run | Recurring while both clusters operate | Length of the overlap, duplicated infrastructure, and how much data must be kept in sync |
| Cutover and rollback rehearsal | One-time | Number of stateful services, downtime tolerance, and how many dry runs the change window requires |
| Decommission of the old cluster | One-time, then ends recurring costs | Data retention obligations, backup copies to keep, and licensing or support that ends with the old platform |
What usually goes wrong when restoring into a new cluster
Most failed migrations with Velero trace back to a small set of predictable gaps: how data was captured, how secrets and storage were mapped, how restored objects meet live ones, and whether anyone proved the restore worked. Each card below names one risk and the check that prevents it.
Inconsistent file system backups
File System Backup reads the live file system, so a database that is writing during the capture can produce a copy that will not start cleanly on the new cluster. Velero's file system backup is less consistent than volume snapshots, and it only works on volumes mounted by a running pod. For active databases, quiesce writes or use the database's own dump or replication tooling, and confirm that a restored instance starts and passes a data check before cutover.
File system backup docsSecrets and certificates mishandled
Secrets are stored unencrypted in etcd by default, so a Velero backup of Secrets carries credentials in plain form into object storage. Restores also fail quietly when certificates, service account keys or external secret references do not come across with the workloads. Decide which Secrets are migrated, confirm encryption at rest on the target, and rebuild or re-issue certificates deliberately rather than assuming they will restore.
Storage class mismatches
A PersistentVolumeClaim that names a StorageClass missing on the new cluster stays Pending, and the application never starts. Provisioner names, volume modes and access modes can differ between sites even when the class names match. Use Velero's storage class mapping during restore, list the classes on both clusters before the run, and check that each claim binds to a volume of the expected type.
Restored objects colliding with live ones
Restoring into a cluster where resources already exist can leave you with skipped objects, overwritten settings or duplicate Services and Ingresses that route traffic to the wrong place. Namespaces, cluster-scoped resources and load balancer addresses are common sources of conflict. Restore into empty namespaces where possible, use resource filtering to exclude cluster-scoped objects you manage separately, and review the restore log for skipped items.
Backup storage access too broad
Velero needs write access to a bucket, and that access is often granted to whole accounts or shared credentials. Because File System Backup uses a static, common encryption key, anyone who can read the backup storage can decrypt the data. Scope credentials to one bucket and prefix, separate source and target cluster permissions, restrict who can read backups, and rotate keys when staff change.
Restores that were never tested
A backup that completes successfully is not evidence that the application will run on the new cluster. Schedules can keep producing backups for months while the restore path quietly breaks through version changes, missing CRDs or changed images. Run a restore into a scratch cluster or namespace on a fixed cadence before the cutover date, record the time it took, and verify the application against a written checklist.
Velero READMEQuestions teams ask before moving workloads with Velero
What does a Velero-based cluster migration cost, and what drives the cost?
The cost comes from planning, configuration work, test runs and the cutover window, plus the infrastructure you run for the migration itself. Cost rises with the number of namespaces, the volume of persistent data, whether volumes need snapshot support or File System Backup, how many storage classes must be mapped, and how many dependent applications must be retested. Velero itself is open source under Apache-2.0, so license fees are not the main line item. Ask any partner for a written quote that lists the components separately: discovery, backup configuration, the object storage target, test restores, cutover support and handover. Confirm which costs recur, such as object storage capacity and any retainer for ongoing support.
How long does a migration take?
Duration depends mainly on the amount of data to move, the bandwidth between the source and target sites, the number of applications with stateful dependencies, and how many test cycles your change process requires. Each restore test is a full run against the target cluster, so a large data set with slow transfer links usually takes the longest. Ask for a timeline that separates inventory, test migration, data movement, cutover rehearsal and the production window. Confirm the transfer rate you can actually achieve between sites before accepting any schedule.
What must our team provide before the work starts?
You need to provide cluster access with the permissions Velero requires, a written inventory of namespaces and workloads, the storage classes and volume types in use on both clusters, an object storage bucket for the backup target, network paths between the clusters and storage, and named owners who can approve data movement and cutover steps. Application owners must also confirm which services can be paused, what data is authoritative, and how DNS or ingress changes will be made. Missing ownership decisions cause more delays than technical issues, so settle them in the scope document.
Can our internal platform team run this migration without a partner?
Yes, if the team already operates Kubernetes in production, has experience with object storage, and can test restores on a non-production target before cutover. The work is mostly careful sequencing: mapping storage classes, filtering resources, choosing between snapshots and File System Backup, rehearsing the cutover and verifying the result. A team without recent restore experience usually underestimates the verification step. Many organizations split the work, keeping application ownership in-house and bringing in outside help for the migration design and the first rehearsal.
Does Velero replace etcd snapshots?
No. Velero backs up Kubernetes API objects and persistent volume data, which lets you move namespaces and applications between clusters. An etcd snapshot, taken with etcdctl snapshot save and restored with etcdutl, captures the control plane state of one cluster, including cluster-wide configuration that Velero may not cover. Migrations usually need both tools: Velero for application movement and etcd snapshots for recovering the source control plane if something goes wrong during the move. Confirm with your own runbook which cluster state is covered by each method.
How does File System Backup encryption affect our data handling?
Velero's documentation warns that File System Backup uses a static, common encryption key, so anyone with access to the backup storage can decrypt the backup data. That changes how you must protect the object storage bucket: restrict access tightly, limit who can read backup objects, log access, and treat copies with the same classification as the source data. Where that exposure is not acceptable, consider volume snapshots instead, if your storage supports them, and review the data handling decision with your security and compliance teams before the first backup runs.
How do we confirm a restore is complete and correct?
Define the checks before the restore runs. Compare object counts per namespace and resource type between source and target, confirm that persistent volumes are bound and contain the expected data, check that pods reach ready state, and run the application-level tests your owners sign off on, such as login, transactions and reports. Also confirm that storage class mappings, network policies, secrets and service endpoints behave as expected. Keep the restore logs and test results as evidence. Only treat the migration as complete when the application owner signs the checklist.
Where to confirm Velero behavior before you commit
Confirm Velero behavior against the upstream sources before you fix a migration design, because the details that decide your approach (which backup method applies to your volumes, what a restore will and will not carry over, and which release you will run) are the ones most likely to change between versions. Start with the Velero README for the project scope, the server and client model, and the supported migration and replication use cases. Then read the file system backup documentation on the Velero site, since it sets the limits that matter most for volume data movement: object storage as the only target, no support for hostPath volumes, the need for a running pod to mount each PVC, and the static encryption key warning. Treat any statement in an internal design document that contradicts these pages as out of date until someone has verified it.
Record the exact Velero server and client versions you tested, and check them against the release page at the time of planning rather than relying on a version named in this guide or in an older runbook. Velero publishes patch releases frequently, so the Velero GitHub releases page is the place to read the release notes for fixes that touch restore, resource filtering or the node agent before you choose a target. Ask your team to rerun a restore of a representative namespace on the exact versions you plan to use, and to confirm the storage class mapping and CSI snapshot behavior on your own storage platform, since those depend on your drivers and not only on Velero itself.
How DeployOpen scopes and delivers a Kubernetes cluster migration
DeployOpen plans, builds, tests and documents Velero-based migrations of workloads between Kubernetes clusters inside infrastructure you control. The work is scoped in writing before it starts, so source and target clusters, storage mapping, data movement and cutover steps are agreed up front.
How we scope
- Inventory source and target clusters, Kubernetes versions, namespaces and the resources each migration wave includes
- Map source StorageClasses to target StorageClasses and record which persistent volumes use snapshots or File System Backup
- Agree in writing the resource filters, volume data movement method, cutover window and rollback criteria for the migration
How we build
- Install the Velero server and client, configure the object storage backup location and test connectivity from both clusters
- Run rehearsal backups and restores into a non-production target cluster and check resources, volumes and application behavior
- Document the migration runbook, backup encryption choices and access controls for the storage holding migration data
How we hand over
- Deliver the runbook, configuration files and restore verification checklist to your platform and application teams
- Walk your operators through the cutover steps, including DNS, ingress and external dependency changes
- Record open risks, such as volumes that need a staging pod or hostPath data, with owners and decisions
How we support
- Offer ongoing support, Velero upgrades and retesting of restore procedures as a retainer after cutover
- Review Velero release notes and Kubernetes version changes against the migration plan before later waves
- Confirm support terms, response expectations and upgrade ownership with your team in the written scope

