Difference between revisions of "CSI Volume Cloning"

From wikieduonline
Jump to navigation Jump to search
 
(11 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]]
  metadata:
+
  [[metadata:]]
 
     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 ==
* [[Volume Cloning]]
+
* [[Snapshots]]
 +
* <code>[[VolumePVCDataSource]]</code>
 +
* <code>[[spec.dataSource]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 08:09, 29 November 2022

Advertising: