Home > Workload Solutions > Container Platforms > Red Hat OpenShift Container Platform > Archive > Deployment Guide—Red Hat OpenShift Container Platform 4.2 > Creating a PVC using iSCSI
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: iscsipvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 25Gi
oc apply -f iscsipvc.yaml
Note: A PVC created using the YAML file defined in Step 1 looks for PVs. When it finds an available PV that meets the claim needs, the PVC and the PV bind.
oc get pv iscsipv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
iscsipv 25Gi RWO Retain Bound default/iscsipvc 46m
oc get pvc iscsipvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
iscsipvc Bound iscsipv 25Gi RWO 46m