Chapter 5. Configuring model catalog sources in OpenShift
As an OpenShift cluster administrator, you can configure a custom model catalog source by adding an entry to the model-catalog-sources config map in OpenShift. This entry provides details such as the catalog name and the location of the catalog source file that specifies your model definitions.
Prerequisites
- You are logged in to the OpenShift web console with cluster administrator privileges.
- You have created a catalog source file that specifies your model definitions. For an example catalog source file, see the sample-catalog.yaml file from Kubeflow Model Registry.
Procedure
-
In the OpenShift web console navigation menu, click Workloads
ConfigMaps. -
In the Project list, enter
rhoai-model-registries, and click the project name. - Click the model-catalog-sources config map name.
-
Click the YAML tab to view the contents of the config map
.yamlfile. -
Find the
data: sources.yamlsection to add your custom catalog source. Add a new entry under the
catalogsfield, for example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow This example adds the
sample-catalog.yamlfile in the same config map as a sibling ofsources.yamland references the sample catalog file in theyamlCatalogPathproperty.The sample catalog source entry is described as follows:
-
name: The user-friendly name of the catalog source. -
id: The unique ID of the catalog source. -
type: The catalog source type. Useyaml. -
enabled: Whether the catalog source is enabled. Defaults totrue. -
properties.yamlCatalogPath: The location of your catalog source file. -
labels: Optional labels for your catalog source to display in the catalog.
-
- Click Save.
Verification
-
In the OpenShift AI dashboard, click AI hub
Catalog. In the menu bar, to view models from your new catalog source:
- If your catalog source has no label, click Other models.
If your catalog source has a label, click <your-label-name> models.
NoteThese changes might take a few minutes to be displayed in the catalog on the dashboard.
Additional resources