This will migrate some PVCs to Portworx volumes
-
Scale down any applications using the PVCs to be migrated.
-
Edit
migrate.sh
- setNAMESPACE
for the namespace containing the PVCs, and check theLABEL
is acceptable. -
Label the PVCs to be migrated to match
LABEL
in step 2:
kubectl label pvc <pvc> -n <namespace> px/migrate=true
kubectl label pvc --all -n <namespace> px/migrate=true
- Run the migration:
sh migrate.sh
- Scale up your applications
You can install Ondat (formerly known as StorageOS) and provision a PostgreSQL running on top, and migrate that PostgreSQL to Portworx:
sh install-ondat.sh
kubectl apply -f ondat-postgres.yml
kubectl scale deploy postgres -n postgres --replicas 0
kubectl label pvc postgres-ondat -n postgres px/migrate=true
sh migrate.sh
kubectl scale deploy postgres -n postgres --replicas 1