Difference between revisions of "CSI Volume Cloning"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
* https://kubernetes.io/docs/concepts/storage/volume-pvc-datasource/
 
* https://kubernetes.io/docs/concepts/storage/volume-pvc-datasource/
  
 +
Requirements:
 +
* The source [[PVC]] must be [[bound]] and available (not in use).
 +
* Same [[namespace]]
 +
 +
== Example ==
 
  apiVersion: v1
 
  apiVersion: v1
 
  [[kind: PersistentVolumeClaim]]
 
  [[kind: PersistentVolumeClaim]]
Line 6: Line 11:
 
     name: clone-of-pvc-origin-volumen-1
 
     name: clone-of-pvc-origin-volumen-1
 
     namespace: myns
 
     namespace: myns
  spec:
+
  [[spec:]]
   accessModes:
+
   [[accessModes:]]
   - ReadWriteOnce
+
   - [[ReadWriteOnce]]
 
   [[storageClassName]]: cloning
 
   [[storageClassName]]: cloning
 
   resources:
 
   resources:
 
     requests:
 
     requests:
 
       storage: 5Gi
 
       storage: 5Gi
   dataSource:
+
   [[dataSource:]]
 
     kind: PersistentVolumeClaim
 
     kind: PersistentVolumeClaim
     name: pvc-origin-volumen-1
+
     [[name]]: pvc-origin-volumen-1
  
 
== Related ==
 
== Related ==
 
* [[Snapshots]]
 
* [[Snapshots]]
 +
* <code>[[VolumePVCDataSource]]</code>
 +
* <code>[[spec.dataSource]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 08:09, 29 November 2022

Advertising: