Difference between revisions of "CSI Volume Cloning"

From wikieduonline
Jump to navigation Jump to search
 
(13 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/
<pre>
+
 
apiVersion: v1
+
Requirements:
kind: PersistentVolumeClaim
+
* The source [[PVC]] must be [[bound]] and available (not in use).
metadata:
+
* Same [[namespace]]
    name: clone-of-pvc-1
+
 
    namespace: myns
+
== Example ==
spec:
+
apiVersion: v1
  accessModes:
+
[[kind: PersistentVolumeClaim]]
  - ReadWriteOnce
+
[[metadata:]]
  storageClassName: cloning
+
    name: clone-of-pvc-origin-volumen-1
  resources:
+
    namespace: myns
    requests:
+
[[spec:]]
      storage: 5Gi
+
  [[accessModes:]]
  dataSource:
+
  - [[ReadWriteOnce]]
    kind: PersistentVolumeClaim
+
  [[storageClassName]]: cloning
    name: pvc-1
+
  resources:
</pre>
+
    requests:
 +
      storage: 5Gi
 +
  [[dataSource:]]
 +
    kind: PersistentVolumeClaim
 +
    [[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: