Chapter 3. Editing a model registry
You can edit the details of existing model registries, such as the model registry name, description, and database connection details.
Prerequisites
- You have logged in to OpenShift AI as a user with OpenShift AI administrator privileges.
- A cluster administrator has enabled the model registry component in your OpenShift AI deployment. For more information, see Enabling the model registry component.
- Your OpenShift AI deployment contains at least 1 model registry.
Procedure
-
From the OpenShift AI dashboard, click Settings
Model registry settings. Click the action menu (⋮) beside the model registry that you want to edit, and then click Edit model registry.
The Edit model registry dialog opens.
- Optional: In the Name field, edit the name of the model registry.
- Optional: In the Description field, edit the description of the model registry.
Optional: In the Connect to external MySQL database section, edit the information for the external database where model data for the registry is stored.
In the Host field, enter the database hostname.
-
If the database is running in the
rhoai-model-registriesnamespace, enter only the hostname for the database. -
If the database is running in a different namespace from
rhoai-model-registries, enter the database hostname details in<hostname>.<namespace>.svc.cluster.localformat.
-
If the database is running in the
- In the Port field, enter the port number for the database.
- In the Username field, enter the default user name that is connected to the database.
- In the Password field, enter the password for the default user account.
- In the Database field, enter the database name.
Optional: Select the Add CA certificate to secure database connection to use a certificate with your database connection.
ImportantIf your external database is configured to enforce Transport Layer Security (TLS), then you must add a Certificate Authority (CA) certificate.
-
Click Use cluster-wide CA bundle to use the
ca-bundle.crtbundle in theodh-trusted-ca-bundleConfigMap. -
Click Use Red Hat OpenShift AI CA bundle to use the
odh-ca-bundle.crtbundle in theodh-trusted-ca-bundleConfigMap. Click Choose from existing certificates to select an existing certificate. You can select the key of any ConfigMap or secret in the
rhoai-model-registriesnamespace.- From the Resource list, select a ConfigMap or secret.
- From the Key list, select a key.
Click Upload new certificate to upload a new certificate as a ConfigMap.
Drag and drop the PEM file for your certificate into the Certificate field, or click Upload to select a file from your local machine’s file system.
NoteUploading a certificate creates the
db-credentialConfigMap with theca.crtkey.To upload a certificate as a secret, you must create a secret in the OpenShift
rhoai-model-registriesnamespace, and then select it as an existing certificate when you create your model registry.For more information about creating secrets in OpenShift, see Providing sensitive data to pods by using secrets.
-
Click Use cluster-wide CA bundle to use the
- Click Update.
Verification
- The model registry is displayed with updated details on the Model registry settings page.