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

Next revision
Previous revision
k8spvcclone [2025/09/14 14:29] – created - external edit 127.0.0.1k8spvcclone [2025/10/25 18:06] (current) – external edit 127.0.0.1
Line 5: Line 5:
 {{tag>kubernetes}} {{tag>kubernetes}}
  
-When doing an Argo CD sync I git an error on one of our PVCs. For one of our applications we upgraded the storage class but hadn't had the time yet to convert the actual PVC:+When doing an Argo CD sync I got an error on one of our PVCs. For one of our applications we upgraded the storage class but hadn't had the time yet to convert the actual PVC:
  
 <code> <code>
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.
Line 139: Line 139:
  
 * [[https://medium.com/linux-shots/migrate-pvc-from-one-storage-class-to-another-195f1c38e019 | Migrate PVC from one Storage Class to another]] * [[https://medium.com/linux-shots/migrate-pvc-from-one-storage-class-to-another-195f1c38e019 | Migrate PVC from one Storage Class to another]]
 +
 +//This wiki has been made possible by://
 +
 +<HTML>
 +<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8613096447910897"
 +     crossorigin="anonymous"></script>
 +<!-- Wiki End of Page -->
 +<ins class="adsbygoogle"
 +     style="display:block"
 +     data-ad-client="ca-pub-8613096447910897"
 +     data-ad-slot="6221699236"
 +     data-ad-format="auto"
 +     data-full-width-responsive="true"></ins>
 +<script>
 +     (adsbygoogle = window.adsbygoogle || []).push({});
 +</script>
 +</HTML>
 +
 +
  
k8spvcclone.1757860149.txt.gz · Last modified: by 127.0.0.1