storage batch-migrate
acloud-toolkit storage batch-migrate
Batch migrate all volumes within a namespace to another storage class
Synopsis
Batch migrate all volumes from a source storage class within a namespace to another storage class. For each PVC that has the source storage class within the namespace, this will create a new PVC using the target storage class, and copy all file contents over to the new volume. The existing persistent volume will remain available in the cluster.
acloud-toolkit storage batch-migrate [flags]
Options
--dry-run Perform a dry run of the batch migrate
-h, --help help for batch-migrate
-s, --source-storage-class string name of the source storageclass
-n, --target-namespace string Namespace where the migrate job will be executed (default "default")
-t, --target-storage-class string name of the target storageclass
--timeout int32 Timeout of the context in minutes (default 300)
SEE ALSO
- acloud-toolkit storage - storage for working with Kubernetes CSI