Difference between revisions of "CSI Volume Cloning"
Jump to navigation
Jump to search
(Created page with " * Volume Cloning == See also == * {{K8s}}") |
|||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | * https://kubernetes.io/docs/concepts/storage/volume-pvc-datasource/ | ||
+ | Requirements: | ||
+ | * The source [[PVC]] must be [[bound]] and available (not in use). | ||
+ | * Same [[namespace]] | ||
+ | == 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
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: