Home > Workload Solutions > Container Platforms > Red Hat OpenShift Container Platform > Archive > Deployment Guide—Red Hat OpenShift Container Platform 4.2 > Creating a PV using NFS
To create a PV:
apiVersion: v1
kind: PersistentVolume
metadata:
name: <nfs pv name>
spec:
capacity:
storage: <capacity>
accessModes:
- ReadWriteOnce
nfs:
path: <nfs share path>
server: <nfs server ip or hostname>
oc apply -f nfspv.yaml
oc get pv nfspv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS STORAGECLASS REASON AGE
nfspv 50Gi RWO Retain Available 36m