mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
34 lines
890 B
Plaintext
34 lines
890 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * storage/container_storage_interface/persistent-storage-csi-cloning.adoc
|
|
|
|
:_mod-docs-content-type: CONCEPT
|
|
[id="persistent-storage-csi-cloning-using_{context}"]
|
|
= Using a cloned PVC as a storage volume
|
|
|
|
A newly cloned persistent volume claim (PVC) can be consumed, cloned, snapshotted, or deleted independently of its original `dataSource` PVC.
|
|
|
|
Pods can access storage by using the cloned PVC as a volume. For example:
|
|
|
|
.Use CSI volume clone in the Pod
|
|
[source,yaml]
|
|
----
|
|
kind: Pod
|
|
apiVersion: v1
|
|
metadata:
|
|
name: mypod
|
|
spec:
|
|
containers:
|
|
- name: myfrontend
|
|
image: dockerfile/nginx
|
|
volumeMounts:
|
|
- mountPath: "/var/www/html"
|
|
name: mypd
|
|
volumes:
|
|
- name: mypd
|
|
persistentVolumeClaim:
|
|
claimName: pvc-1-clone <1>
|
|
----
|
|
|
|
<1> The cloned PVC created during the CSI volume cloning operation.
|