Difference between revisions of "CSI Volume Cloning"
Jump to navigation
Jump to search
(6 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
Requirements: | Requirements: | ||
* The source [[PVC]] must be [[bound]] and available (not in use). | * The source [[PVC]] must be [[bound]] and available (not in use). | ||
+ | * Same [[namespace]] | ||
== Example == | == Example == | ||
Line 10: | 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
Requirements:
Example[edit]
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[edit]
See also[edit]
- Kubernetes storage, storage classes, PersistentVolume (PV), PVC, CSI,
kind: StorageClass, kind: PersistentVolumeClaim, kind: PersistentVolume
,kubectl [ get | describe | edit ] pvc
,volumeClaimTemplates:
,kubectl patch pv
,FailedMount
, Volume Expansion, Volume Cloning, snapshots, ExtraVolumes, NotTriggerScaleUp,volumePVCDataSource, AllowVolumeExpansion
, EKS storage, provisioner, Storage Capacity Tracking,VolumeBinding, VolumeClaimTemplate, storage.k8s.io
, CKA Storage, DoKC, EmptyDir, Volume populators,storageclass.kubernetes.io
Advertising: