Difference between revisions of "CSI Volume Cloning"
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/ | ||
− | + | ||
− | apiVersion: v1 | + | Requirements: |
− | kind: PersistentVolumeClaim | + | * The source [[PVC]] must be [[bound]] and available (not in use). |
− | metadata: | + | * Same [[namespace]] |
− | + | ||
− | + | == Example == | |
− | spec: | + | 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 == | == Related == | ||
− | * [[ | + | * [[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: