このコンテンツは選択した言語では利用できません。

Chapter 2. 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.
  • A cluster administrator has enabled the model registry component in your OpenShift AI deployment. For more information, see Enabling the model registry component.
  • You have access to an external MySQL database which uses at least MySQL version 5.x. However, Red Hat recommends that you use MySQL version 8.x.

Procedure

  1. From the OpenShift AI dashboard, click Settings 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 then enter a specific resource name for the model registry in the Resource name field. By default, the resource name will match 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 Connect to external MySQL database section, enter the information for the external database where your model data is stored.

    1. In the Host field, enter the database’s hostname.

      1. If the database is running in the rhoai-model-registries namespace, enter only the hostname for the database.
      2. If the database is running in a different namespace from rhoai-model-registries, enter the database hostname details in <hostname>.<namespace>.svc.cluster.local format.
    2. In the Port field, enter the port number for the database.
    3. In the Username field, enter the default user name that is connected to the database.
    4. In the Password field, enter the password for the default user account.
    5. In the Database field, enter the database name.
  7. Optional: Select the Add CA certificate to secure database connection to use a certificate with your database connection.

    Important

    If your external database is configured to enforce Transport Layer Security (TLS), then 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 in OpenShift, see Providing sensitive data to pods by using secrets.

  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 appears 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.
  • You can register a model with the model registry from the Model registry tab. For more information about working with model registries, see Working with model registries.
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat