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 16. Using Persistent Volumes
16.1. Overview 링크 복사링크가 클립보드에 복사되었습니다!
A PersistentVolume
object is a storage resource in an OpenShift cluster. Storage is provisioned by an administrator by creating PersistentVolume
objects from sources such as GCE Persistent Disks, AWS Elastic Block Stores (EBS), and NFS mounts.
Persistent volume plug-ins other than the supported NFS plug-in, such as AWS Elastic Block Stores (EBS), GCE Persistent Disks, GlusterFS, iSCSI, and RADOS (Ceph), are currently in Technology Preview. The Administrator Guide provides instructions on provisioning an OpenShift cluster with persistent storage using NFS.
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.
16.2. Requesting Storage 링크 복사링크가 클립보드에 복사되었습니다!
You can request storage by creating PersistentVolumeClaim
objects in your projects:
Example 16.1. Persistent Volume Claim Object Definition
16.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 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:
16.4. Claims as Volumes in Pods 링크 복사링크가 클립보드에 복사되었습니다!
A PersistentVolumeClaim
is used by a pod as a volume. OpenShift 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 16.2. Pod Definition with a Claim
See Kubernetes Persistent Volumes for more information.