wiki.getshifting.com

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


k8spvcclone
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
k8spvcclone [2025/09/15 08:29] – [How to Clone a PVC in Kubernetes] sjoerdk8spvcclone [2025/09/20 18:09] (current) sjoerd
Line 76: Line 76:
 kubectl scale deployment seq --replicas=0 -n appops kubectl scale deployment seq --replicas=0 -n appops
 # Start the clone using korb. Note that the container image parameter is only necessary when working on a private cluster # Start the clone using korb. Note that the container image parameter is only necessary when working on a private cluster
-korb --new-pvc-storage-class=managed-premium --strategy=copy-twice-name --new-pvc-namespace=appops --source-namespace=appops --container-image=acreuwvtxprd.azurecr.io/docker/beryju/korb-mover:v2 seq+korb --new-pvc-storage-class=managed-premium --strategy=copy-twice-name --new-pvc-namespace=appops --source-namespace=appops --container-image=acreuwprd.azurecr.io/docker/beryju/korb-mover:v2 seq
 # Once the clone is ready, scale the application back to 1 replica # Once the clone is ready, scale the application back to 1 replica
 kubectl scale deployment seq --replicas=1 -n appops kubectl scale deployment seq --replicas=1 -n appops
Line 86: Line 86:
 az login az login
 docker pull ghcr.io/beryju/korb-mover:v2 docker pull ghcr.io/beryju/korb-mover:v2
-docker tag ghcr.io/beryju/korb-mover:v2 acreuwvtxprd.azurecr.io/docker/beryju/korb-mover:v2 +docker tag ghcr.io/beryju/korb-mover:v2 acreuwprd.azurecr.io/docker/beryju/korb-mover:v2 
-docker push acreuwvtxprd.azurecr.io/docker/beryju/korb-mover:v2+docker push acreuwprd.azurecr.io/docker/beryju/korb-mover:v2
 </code> </code>
 * The strategy 'copy-twice-name' means that the pvc will first be cloned to a temporary pvc with a temporary name, and then right away to the final pvc with the original name. This works best in an environment with Argo CD which tracks the pvc by name. * The strategy 'copy-twice-name' means that the pvc will first be cloned to a temporary pvc with a temporary name, and then right away to the final pvc with the original name. This works best in an environment with Argo CD which tracks the pvc by name.
k8spvcclone.txt · Last modified: by sjoerd