$ oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"disableRedirect":true}}'
You can configure the registry of a cluster that runs on your own Red Hat OpenStack Platform (RHOSP) infrastructure.
You must configure the Image Registry Operator to trust Red Hat OpenStack Platform (RHOSP) Swift storage.
From a command line, enter the following command to change the value of the spec.disableRedirect
field in the config.imageregistry
object to true
:
$ oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"disableRedirect":true}}'
In addition to the configs.imageregistry.operator.openshift.io
and ConfigMap
resources, configuration is provided to the Operator by a separate secret
resource located within the openshift-image-registry
namespace.
The image-registry-private-configuration-user
secret provides
credentials needed for storage access and management. It overrides the default
credentials used by the Operator, if default credentials were found.
For Swift on Red Hat OpenStack Platform (RHOSP) storage, the secret is expected to contain the following two keys:
REGISTRY_STORAGE_SWIFT_user
REGISTRY_STORAGE_SWIFT_PASSWORD
Create an OKD secret that contains the required keys.
$ oc create secret generic image-registry-private-configuration-user --from-literal=REGISTRY_STORAGE_SWIFT_user=<username> --from-literal=REGISTRY_STORAGE_SWIFT_PASSWORD=<password> -n openshift-image-registry
You must set up the storage medium manually and configure the settings in the registry custom resource (CR).
A cluster on Red Hat OpenStack Platform (RHOSP) with user-provisioned infrastructure.
To configure registry storage for RHOSP, you need to provide Registry Operator cloud credentials.
For Swift on RHOSP storage, the secret is expected to contain the following two keys:
REGISTRY_STORAGE_SWIFT_user
REGISTRY_STORAGE_SWIFT_PASSWORD
The following configuration parameters are available for Red Hat OpenStack Platform (RHOSP) Swift registry storage.
Parameter | Description |
---|---|
|
This value is optional. |
|
This value is optional. |
|
This value is optional. |
|
This value is optional. |
|
This value is optional. |
|
This value is optional. |
|
This value is optional. |
|
This value is optional. |