Difference between revisions of "CSI Volume Cloning"

From wikieduonline
Jump to navigation Jump to search
 
(14 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]]
  
* [[Volume Cloning]]
+
== Example ==
 +
apiVersion: v1
 +
[[kind: PersistentVolumeClaim]]
 +
[[metadata:]]
 +
    name: clone-of-pvc-origin-volumen-1
 +
    namespace: myns
 +
[[spec:]]
 +
  [[accessModes:]]
 +
  - [[ReadWriteOnce]]
 +
  [[storageClassName]]: cloning
 +
  resources:
 +
    requests:
 +
      storage: 5Gi
 +
  [[dataSource:]]
 +
    kind: PersistentVolumeClaim
 +
    [[name]]: pvc-origin-volumen-1
 +
 
 +
== Related ==
 +
* [[Snapshots]]
 +
* <code>[[VolumePVCDataSource]]</code>
 +
* <code>[[spec.dataSource]]</code>
  
 
== See also ==
 
== See also ==
* {{K8s}}
+
* {{K8s storage}}
 +
 
 +
[[Category:K8s]]

Latest revision as of 08:09, 29 November 2022

Advertising: