Cloud/harbor: nfs volumes migration #14

Open
opened 2024-10-28 09:04:10 +00:00 by victorc · 2 comments
Owner
No description provided.
Author
Owner

registry,jobservice migrated

registry,jobservice migrated
Author
Owner

planned approch for the other 'Volume Claim Template' based (database, redis, trivy):

  • ensure each dynamically provisioned volume has reclaimPolicy set to Retain
  • create corresponding nfs persistent volume
  • scale in deployment/statefulset referring the existing claim to prevent writes
  • create a 'migration' pod mounting the existing volume via the existing claim and the new volume in any method of your choice
  • in the 'migration' pod copy the old volume to the new volume recursively, preserving ownership and mode ('cp -r -p -v /old/* /new' or 'rsync -av /old/ /new/' etc)
  • make note of the existing volume claim name, delete it and then to re-create it with exactly the same name ensuring the claim is on the new volume
  • scale out the deployment/stateful set
  • if all well and when correct funcionality confirmed old persisten volumes can be effectively deleted
planned approch for the other 'Volume Claim Template' based (database, redis, trivy): - ensure each dynamically provisioned volume has reclaimPolicy set to Retain - create corresponding nfs persistent volume - scale in deployment/statefulset referring the existing claim to prevent writes - create a 'migration' pod mounting the existing volume via the existing claim and the new volume in any method of your choice - in the 'migration' pod copy the old volume to the new volume recursively, preserving ownership and mode ('cp -r -p -v /old/* /new' or 'rsync -av /old/ /new/' etc) - make note of the existing volume claim name, delete it and then to re-create it with exactly the same name ensuring the claim is on the new volume - scale out the deployment/stateful set - if all well and when correct funcionality confirmed old persisten volumes can be effectively deleted
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: siatel/cloud#14
No description provided.