Difference between revisions of "CSI Volume Cloning"

From wikieduonline
Jump to navigation Jump to search
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
+
apiVersion: v1
kind: PersistentVolumeClaim
+
[[kind: PersistentVolumeClaim]]
metadata:
+
metadata:
    name: clone-of-pvc-1
+
    name: clone-of-pvc-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-1
+
    name: pvc-1
</pre>
 
  
 
== Related ==
 
== Related ==

Revision as of 05:39, 2 November 2022

Advertising: