Document URL: - https://docs.openshift.com/container-platform/4.4/release_notes/ocp-4-4-release-notes.html - https://docs.openshift.com/container-platform/4.4/installing/installing_vsphere/installing-vsphere.html Maybe much more... Section Number and Name: Using ReadWriteOnce volume for internal Image Registry Describe the issue: Since OpenShift 4.4 it is possible to use a ReadWriteOnce volume for internal image registry storage. Tested in vSphere with: ``` oc create -f - <<EOF kind: PersistentVolumeClaim apiVersion: v1 metadata: name: image-registry-pvc namespace: openshift-image-registry spec: accessModes: - ReadWriteOnce resources: requests: storage: 100Gi storageClassName: thin EOF oc patch configs.imageregistry.operator.openshift.io/cluster \ --type='json' \ --patch='[ {"op": "replace", "path": "/spec/managementState", "value": "Managed"}, {"op": "replace", "path": "/spec/rolloutStrategy", "value": "Recreate"}, {"op": "replace", "path": "/spec/replicas", "value": 1}, {"op": "replace", "path": "/spec/storage", "value": {"pvc":{"claim": "image-registry-pvc" }}} ]' ``` By using a ReadWriteOnce volume you have to - Change the Rollout Strategy from rolling to recreate and - its only supported to have exactly one replica. That means, during a cluster or image-registry upgrade, your internal registry has downtime between stopping the old pod and starting the new pod! Suggestions for improvement: Add a chapter and support status information. Additional information: - https://issues.redhat.com/browse/RFE-489 - https://issues.redhat.com/browse/DEVEXP-523 - https://bugzilla.redhat.com/show_bug.cgi?id=1798759
Hi team, Any updates here? Thanks
Dear Red Hat, OCP4.5 manual was already released but it is still not fixed. When will it be fixed? You guys are saying in the following doc that NFS should be avoided for image-registry . https://docs.openshift.com/container-platform/4.5/scalability_and_performance/optimizing-storage.html#specific-application-storage-recommendations But another page says that user should use NFS for image-registry... So user will select a storage which Red Hat doesn't recommend actually and data corruption or other problems might occur due to that. That's a big problem, isn't that? Best Regards, Masaki Hatada
Hi, Any update here? Thanks
I have created https://github.com/openshift/openshift-docs/pull/24043 to add the procedure that is outlined in an RFE comment by Adam K. here: https://issues.redhat.com/browse/RFE-489?focusedCommentId=14099892&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14099892 Moving to ON_QA. Jianwei Hou, PTAL, thanks.
Verified after reviewing the doc.
This content has been reviewed and approved by Eng, QE, and Docs. Content has been merged/CP'ed to 4.4, 4.5, 4.6, and is published in 4.4+. For example: https://docs.openshift.com/container-platform/4.5/installing/installing_vsphere/installing-vsphere-network-customizations.html#installation-registry-storage-config_installing-vsphere-network-customizations Closing BZ.
Adding some 4.4 links as there was a slight variation in this version's "Installing on vSphere" TOC: https://docs.openshift.com/container-platform/4.4/installing/installing_vsphere/installing-vsphere.html#installation-registry-storage-non-production_installing-vsphere One other area where this now shows up is in 4.4+ Registry -> Setting up and configuring the registry -> Configuring the registry for vSphere: - https://docs.openshift.com/container-platform/4.4/registry/configuring_registry_storage/configuring-registry-storage-vsphere.html#installation-registry-storage-block-recreate-rollout_configuring-registry-storage-vsphere - https://docs.openshift.com/container-platform/4.5/registry/configuring_registry_storage/configuring-registry-storage-vsphere.html#installation-registry-storage-block-recreate-rollout_configuring-registry-storage-vsphere