此内容没有您所选择的语言版本。

Chapter 4. Creating project-scoped resources


OpenShift AI users can access global resources in all OpenShift AI projects. However, they can access project-scoped resources only within projects that they have permissions to access.

As a cluster administrator, you can create the following types of project-scoped resources in any OpenShift AI project:

  • Workbench images
  • Hardware profiles
  • Accelerator profiles
  • Model-serving runtimes for KServe

All resource names must be unique within a project.

Note

A user with access permissions to a project can create project-scoped resources for that project, as described in Creating project-scoped resources for your project.

Prerequisites

  • You can access the OpenShift console as a cluster administrator.
  • You have set the disableProjectScoped dashboard configuration option to false, as described in Customizing the dashboard.

Procedure

  1. Log in to the OpenShift console as a cluster administrator.
  2. Copy the YAML code to create the resource.

    You can get the YAML code from a trusted source, such as an existing resource, a Git repository, or documentation.

    For example, you can copy the YAML code from an existing resource, as follows:

    1. In the Administrator perspective, click Home Search.
    2. From the Project list, select the appropriate project.

      To limit the search to global OpenShift AI resources only, select the redhat-ods-applications project.

    3. In the Resources list, search for the relevant resource type:

      • For workbench images, search for ImageStream.
      • For hardware profiles, search for HardwareProfile.
      • For accelerator profiles, search for AcceleratorProfile.
      • For serving runtimes, search for Template. From the resulting list, find the templates that have the objects.kind specification set to ServingRuntime.
    4. Select a resource, and then click the YAML tab.
    5. Copy the YAML content, and then click Cancel.
  3. From the Project list, select the target project name.
  4. From the toolbar, click the + icon to open the Import YAML page.
  5. Paste the relevant YAML content into the code area.
  6. Edit the metadata.namespace value to specify the name of the target project.
  7. If necessary, edit the metadata.name value to ensure that the resource name is unique within the specified project.
  8. Optional: Edit the resource name that is displayed in the OpenShift AI console:

    • For workbench images, edit the metadata.annotations.opendatahub.io/notebook-image-name value.
    • For hardware profiles and accelerator profiles, edit the spec.displayName value.
    • For serving runtimes, edit the objects.metadata.annotations.openshift.io/display-name value.
  9. Click Create.

Verification

  1. Log in to the OpenShift AI console as a regular user.
  2. Verify that the project-scoped resource is shown in the specified project:

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat