This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 20. Using Persistent Volumes
20.1. Overview 링크 복사링크가 클립보드에 복사되었습니다!
A PersistentVolume
object is a storage resource in an OpenShift Enterprise cluster. Storage is provisioned by your cluster administrator by creating PersistentVolume
objects from sources such as GCE Persistent Disk, AWS Elastic Block Store (EBS), and NFS mounts.
The Installation and Configuration Guide provides instructions for cluster administrators on provisioning an OpenShift Enterprise cluster with persistent storage using NFS, GlusterFS, Ceph RBD, OpenStack Cinder, AWS EBS, GCE Persistent Disk, iSCSI, and Fibre Channel.
Storage can be made available to you by laying claims to the resource. You can make a request for storage resources using a PersistentVolumeClaim
object; the claim is paired with a volume that generally matches your request.
20.2. Requesting Storage 링크 복사링크가 클립보드에 복사되었습니다!
You can request storage by creating PersistentVolumeClaim
objects in your projects:
Example 20.1. Persistent Volume Claim Object Definition
20.3. Volume and Claim Binding 링크 복사링크가 클립보드에 복사되었습니다!
A PersistentVolume
is a specific resource. A PersistentVolumeClaim
is a request for a resource with specific attributes, such as storage size. In between the two is a process that matches a claim to an available volume and binds them together. This allows the claim to be used as a volume in a pod. OpenShift Enterprise finds the volume backing the claim and mounts it into the pod.
You can tell whether a claim or volume is bound by querying using the CLI:
20.4. Claims as Volumes in Pods 링크 복사링크가 클립보드에 복사되었습니다!
A PersistentVolumeClaim
is used by a pod as a volume. OpenShift Enterprise finds the claim with the given name in the same namespace as the pod, then uses the claim to find the corresponding volume to mount.
Example 20.2. Pod Definition with a Claim