이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 3. Creating a model registry


You can create a model registry to store, share, version, deploy, and track your models.

Prerequisites

  • You have logged in to OpenShift AI as a user with OpenShift AI administrator privileges.
  • The model registry component is enabled in your OpenShift AI deployment. For more information, see Enabling the model registry component.
  • For production use cases, you have access to one of the following external databases:

    • PostgreSQL 16.x database
    • MySQL database that uses at least MySQL 5.x. However, it is best to use MySQL 9.x.

Procedure

  1. From the OpenShift AI dashboard, click Settings Model resources and operations Model registry settings.
  2. Click Create model registry.

    The Create model registry dialog opens.

  3. In the Name field, enter a name for the model registry.
  4. Optional: Click Edit resource name, and enter a specific resource name for the model registry in the Resource name field. By default, the resource name matches the name of the model registry.

    Important

    Resource names are what your resources are labeled as in OpenShift. Your resource name cannot exceed 253 characters, must consist of lowercase alphanumeric characters or -, and must start and end with an alphanumeric character. Resource names are not editable after creation.

    The resource name must not match the name of any other model registry resource in your OpenShift cluster.

  5. Optional: In the Description field, enter a description for the model registry.
  6. In the Database section, click one of the following options to select where your model data is stored:

    • Default database (non-production): Use the PostgreSQL database that is enabled by default on your OpenShift cluster.

      Note

      The default database is designed for evaluation, development, and testing purposes only. Red Hat does not support this database for production use cases.

    • External database: Connect an external MySQL or PostgreSQL database designed for production use cases.
  7. If you selected External database, enter the details for the external database where your model data is stored:

    • Database type: Select MySQL or PostgreSQL from the list.
    • Host: Enter the database hostname, depending on where the database is running:

      1. In the rhoai-model-registries namespace, enter only the hostname for the database.
      2. In a different namespace from rhoai-model-registries, enter the database hostname details in <hostname>.<namespace>.svc.cluster.local format.
    • Port: Enter the port number for the database. The default port for MySQL is 3306. The default port for PostgreSQL is 5432.
    • Username: Enter the default user name that is connected to the database.
    • Password: Enter the password for the default user account.
    • Database: Enter the database name.
    • Optional: Add CA certificate to secure database connection: Select this option to use a certificate with your database connection and specify one of the following options.

      Important

      If your external database is configured to enforce Transport Layer Security (TLS), you must add a Certificate Authority (CA) certificate.

      1. Click Use cluster-wide CA bundle to use the ca-bundle.crt bundle in the odh-trusted-ca-bundle ConfigMap.
      2. Click Use Red Hat OpenShift AI CA bundle to use the odh-ca-bundle.crt bundle in the odh-trusted-ca-bundle ConfigMap.
      3. Click Choose from existing certificates to select an existing certificate. You can select the key of any ConfigMap or secret in the rhoai-model-registries namespace.

        1. From the Resource list, select a ConfigMap or secret.
        2. From the Key list, select a key.
      4. Click Upload new certificate to upload a new certificate as a ConfigMap.

        1. 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.

          Note

          Uploading a certificate creates the db-credential ConfigMap with the ca.crt key.

          To upload a certificate as a secret, you must create a secret in the OpenShift rhoai-model-registries namespace, and then select it as an existing certificate when you create your model registry.

          For more information about creating secrets, see Providing sensitive data to pods by using secrets in the OpenShift Container Platform documentation.

  8. Click Create.
Note

To find the resource name or type of a model registry, click the help icon Help icon beside the registry name. Resource names and types are used to find your resources in OpenShift.

Verification

  • The new model registry is displayed on the Model registry settings page.
  • You can edit the model registry by clicking the action menu () beside it, and then clicking Edit model registry.

Next steps

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동