Home > Workload Solutions > Container Platforms > Red Hat OpenShift Container Platform > Archive > Deployment Guide—Integrating Red Hat Ceph Storage with Red Hat OpenShift Clusters > Persistent storage
To create a PVC for persistent storage:
rbd create <image-vol-name> --size <any size> --pool <pool-name>
apiVersion: v1
kind: PersistentVolume
metadata:
name: ceph-doc-pv
spec:
capacity:
storage: 16Gi
rbd:
monitors:
- '192.168.20.27:6789'
- '192.168.20.28:6789'
- '192.168.20.29:6789'
image: ceph-doc-vol
pool: ceph-openshift
user: admin
secretRef:
name: ceph-secret
accessModes:
- ReadWriteOnce
claimRef:
kind: PersistentVolumeClaim
namespace: ceph-storage-integration
name: ceph-doc-pvc
persistentVolumeReclaimPolicy: Retain
oc create -f ceph-pv.yaml
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: ceph-doc-pvc
namespace: ceph-storage-integration
spec:
accessModes:
- ReadWriteOnce
secretRef:
name: ceph-secret
resources:
requests:
storage: 16Gi
storageClassName: ceph-storage-class
oc create -f ceph-pvc.yaml