184.108.40.206. Image registry storage configuration
The Image Registry Operator is not initially available for platforms that do not provide default storage. After installation, you must configure your registry to use storage so that the Registry Operator is made available.
Instructions are shown for configuring a persistent volume, which is required for production clusters. Where applicable, instructions are shown for configuring an empty directory as the storage location, which is available for only non-production clusters.
Additional instructions are provided for allowing the image registry to use block storage types by using the
Recreate rollout strategy during upgrades.
220.127.116.11.1. Configuring registry storage for VMware vSphere
As a cluster administrator, following installation you must configure your registry to use storage.
- Cluster administrator permissions.
- A cluster on VMware vSphere.
Persistent storage provisioned for your cluster, such as Red Hat OpenShift Container Storage.重要
OpenShift Container Platform supports
ReadWriteOnceaccess for image registry storage when you have only one replica. To deploy an image registry that supports high availability with two or more replicas,
ReadWriteManyaccess is required.
- Must have "100Gi" capacity.
Testing shows issues with using the NFS server on RHEL as storage backend for core services. This includes the OpenShift Container Registry and Quay, Prometheus for monitoring storage, and Elasticsearch for logging storage. Therefore, using RHEL NFS to back PVs used by core services is not recommended.
Other NFS implementations on the marketplace might not have these issues. Contact the individual NFS implementation vendor for more information on any testing that was possibly completed against these OpenShift Container Platform core components.
To configure your registry to use storage, change the
When using shared storage, review your security settings to prevent outside access.
Verify that you do not have a registry pod:
$ oc get pod -n openshift-image-registry注記
If the storage type is
emptyDIR, the replica number cannot be greater than
Check the registry configuration:
$ oc edit configs.imageregistry.operator.openshift.io
storage: pvc: claim: 1
- Leave the
claimfield blank to allow the automatic creation of an
$ oc get clusteroperator image-registry