- OpenShift 4.6 on VMware 6.7 U3+ or 7.0
- VMware Cloud Native Storage to support CNS CSI
After you install the cluster, you must create storage for the registry Operator.
For VMware environement, we usually don't have Object Storage available for Registry, so we will use RWO PV storage for single registry instance here
Procedure
- Create
image-registry-storagePVC. The example use defaultthinstorageclass, please change per strageclass available in your environment.cat <<EOF | oc create -f - kind: PersistentVolumeClaim apiVersion: v1 metadata: name: image-registry-storage namespace: openshift-image-registry spec: accessModes: - ReadWriteOnce resources: requests: storage: 100Gi storageClassName: thin volumeMode: Filesystem EOF - Apply block registry storage for VMware vSphere
oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"managementState":"Managed","rolloutStrategy":"Recreate","storage":{"pvc":{"claim":"image-registry-storage"}}}}'