Configure OpenShift Image Registry to use NFS

Create NFS Persistent Volume Claim

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: registrypvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi
storageClassName: managed-nfs-storage
$ oc project openshift-image-registry$ oc create -f pvc-nfs.yaml
persistentvolumeclaim/registrypvc created
$ oc get pvc
<this should show the registrypvc status as Bound>
$ oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"storage":{"pvc":{"claim":"registrypvc"}}, "managementState": "Managed"}}'
$ oc get pods -o name
pod/cluster-image-registry-operator-6bf6d5449-c7rk4
pod/image-registry-7bc75dddd7-jbqhg
pod/node-ca-678l7
pod/node-ca-l885z
pod/node-ca-mvwft
pod/node-ca-vwh5t
pod/node-ca-x7rd6
$ oc rsh image-registry-7bc75dddd7-jbqhg
sh-4.2$ mount | grep registry
<this should show the NFS mountpoint>

--

--

--

Writes about Kubernetes, containers, and related technology | Startup advisor. www.linkedin.com/in/bpradipt

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Ruby Unbundled Series: Release Features Faster by Slowing Down

Speed up Your Business Growth with Cloud Mobile App Development

Coroutines and RxJava - An Asynchronicity Comparison (Part 7): MVI Project

7 Things I Learned At My First Hackathon

What is a Web Server? Different Types of Web Servers.

The Story: Exploring the edges

Learning Git Part 1

Convergent Build Teams: A Mid-Semester Look Back

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
Pradipta Banerjee

Pradipta Banerjee

Writes about Kubernetes, containers, and related technology | Startup advisor. www.linkedin.com/in/bpradipt

More from Medium

Health Checkups for your OpenShift Cluster

OpenShift 4.10 Image Mirroring for Airgap Environment

Allowlist Your IP Address to Security Connect to an OCI Compute Instance

Openshift usecases: