Configure OpenShift Image Registry to use NFS

OpenShift provides a built in Container Image Registry for working with container images. The Registry is configured and managed by the Image Registry Operator. It runs in the openshift-image-registry namespace.

In case you want to see detailed information about the image registry operator, run the following command:

oc describe configs.imageregistry.operator.openshift.io

In case you want to see the PODs created by the image registry operator, run the following command:

oc get pods -n openshift-image-registry

Follow these steps to use NFS storage for the Image Registry

Create NFS Persistent Volume Claim

Following is an example YAML to create NFS PVC:

Run the following commands to create PVC in the openshift-image-registry namespace and configure the Image Registry to use the NFS PVC:

Run the following command to check the status of the PVC:

Run the following command to update the Image Registry to use the NFS PVC:

For verification, you can check the /registry mountpoint inside the image-registry pod. Run the following commands:

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store