Skip to content

Copy content from one Kubernetes Persistent Volume to another

Notifications You must be signed in to change notification settings

edseymour/pvc-transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Process to copy contents from one PVC to another

I created this to allow me to migrate from different storage backends for a given project. The process would be:

  • Create a new PVC using the preferred storage backend
  • Shutdown app (scale replicas to zero)
  • Run sync process job
  • Edit Pod specs to use new PVC
  • Scale app back up

Usage

oc process -f job-template.yaml SOURCE_PVC=sourcepvc DEST_PVC=destpvc | oc create -f -

About

Copy content from one Kubernetes Persistent Volume to another

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published