diff --git a/modules/installation-registry-storage-block-recreate-rollout.adoc b/modules/installation-registry-storage-block-recreate-rollout.adoc index 93ee22acb989..b1cb3102f5a3 100644 --- a/modules/installation-registry-storage-block-recreate-rollout.adoc +++ b/modules/installation-registry-storage-block-recreate-rollout.adoc @@ -32,5 +32,45 @@ $ oc patch config.imageregistry.operator.openshift.io/cluster --type=merge -p '{ ---- + . Provision the PV for the block storage device, and create a PVC for that volume. The requested block volume uses the ReadWriteOnce (RWO) access mode. +.. Create a `pvc.yaml` file with the following contents to define a VMware vSphere PersistentVolumeClaim: + -. Edit the registry configuration so that it references the correct PVC. +[source,yaml] +---- +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: image-registry-storage <1> +spec: + accessModes: + - ReadWriteOnce <2> + resources: + requests: + storage: 100Gi <3> +---- +<1> A unique name that represents the PersistentVolumeClaim. +<2> The access mode of the PersistentVolumeClaim. With `ReadWriteOnce`, the volume can be mounted with read and write permissions by a single node. +<3> The size of the PersistentVolumeClaim. + +.. Create the PersistentVolumeClaim from the file: ++ +[source,terminal] +---- +$ oc create -f pvc.yaml +---- + ++ +. Edit the registry configuration so that it references the correct PVC: ++ +[source,terminal] +---- +$ oc edit config.imageregistry.operator.openshift.io -o yaml +---- ++ +.Example output +[source,yaml] +---- +storage: + pvc: + claim: <1> +---- +<1> Creating a custom PVC allows you to leave the `claim` field blank for the default automatic creation of an `image-registry-storage` PVC.