Updating stored data to the latest storage version
To update stored data to the latest Kubernetes storage version, perform a storage migration.
The procedure shows an example of converting existing objects on the v1beta1 version to the current version, such as v1beta2, to ensure compatibility with the cluster APIs.
-
Either you or any controller that has support for the
StorageVersionMigrationAPI must trigger a migration request. Use the following example request for reference:Example requestapiVersion: migration.k8s.io/v1alpha1 kind: StorageVersionMigration metadata: name: snapshot-v1 spec: resource: group: snapshot.storage.k8s.io resource: volumesnapshotclasses version: v1where:
resource.resource-
Specifies the plural name of the resource.
resource.version-
Specifies the version to update to.
-
To monitor the progress of the update, review the status of the
StorageVersionMigrationcustom resource (CR).
|
|
A migration fails when you misname a group or resource. Incompatible versions between the previous and latest versions can also cause a migration to fail. |