Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,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.