Chapter 6. Installing Red Hat OpenShift 3.11 on IBM PowerVC 141
6.4.2  Creating the persistent storage for the Registry
Complete the following steps to set up the persistent storage for the Registry:
1. Create a Persiste nt Volume Claim:
oc login -u system:admin
Logged into "https://mstnode01.domain.example.com:8443" as "system:admin" using existing 
credentials.
You have access to the following projects and can switch between them with 'oc project 
<projectname>':
...
Output truncated
...
Using project "powervc-flexvoldrv".
oc project default
Now using project "default" on server "https://ocp.domain.example.com:8443".
cat > registry-pvc.yml <<EOF_/registry-pvc.yml
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: registry-pvc
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1024Gi
EOF_/registry-pvc.yml
oc create -f registry-pvc.yml
persistentvolumeclaim/registry-pvc created
oc get pvc
NAME           STATUS    VOLUME                                     CAPACITY   ACCESS 
MODES   STORAGECLASS AGE
registry-pvc   Bound     pvc-fb388f7a-0fb4-11ea-a12a-faa21eff8220   1Ti        RWO 
ibm-powervc-k8s-volume-default   7s
oc get dc
NAME               REVISION   DESIRED   CURRENT   TRIGGERED BY
docker-registry    1          1         1         config
registry-console   1          1         1         config
router             1          3         3         config
oc get pods
NAME                       READY     STATUS    RESTARTS   AGE
docker-registry-1-tmbfn    1/1       Running   0          41m
registry-console-1-p5clt   1/1       Running   0          41m
router-1-2hm94             1/1       Running   0          41m
router-1-2s9zn             1/1       Running   0          41m
router-1-72f7r             1/1       Running   0          41m
oc set volume dc/docker-registry
deploymentconfigs/docker-registry
  empty directory as registry-storage
    mounted at /registry
  secret/registry-certificates as registry-certificates
    mounted at /etc/secrets