第 3 章 管理仪表板中显示的应用程序
3.1. 将应用程序添加到仪表板中 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
如果您在 OpenShift 集群中安装了应用程序,OpenShift AI 管理员可以将该应用程序的标题添加到 OpenShift AI 仪表板(Application
先决条件
- 有 OpenShift AI 管理员特权。
spec.dashboardConfig.enablementdashboard 配置选项被设置为true(默认值)。有关设置仪表板配置选项的更多信息,请参阅 自定义仪表板。
流程
- 以 OpenShift AI 管理员身份登录 OpenShift 控制台。
-
在 Administrator 视角中,点 Home
API Explorer。 -
在搜索栏中,输入
OdhApplication以根据 kind 进行过滤。 -
点
OdhApplication自定义资源(CR)以打开资源详情页面。 -
从 Project 列表中,选择 OpenShift AI 应用程序命名空间;默认为
redhat-ods-applications。 - 点 实例 选项卡。
- 单击 Create OdhApplication。
在 Create OdhApplication 页面中,复制以下代码并将其粘贴到 YAML 编辑器中。
apiVersion: dashboard.opendatahub.io/v1 kind: OdhApplication metadata: name: examplename namespace: redhat-ods-applications labels: app: odh-dashboard app.kubernetes.io/part-of: odh-dashboard spec: enable: validationConfigMap: examplename-enable img: >- <svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="path data" fill="#ee0000"/> </svg> getStartedLink: 'https://example.org/docs/quickstart.html' route: exampleroutename routeNamespace: examplenamespace displayName: Example Name kfdefApplications: [] support: third party support csvName: '' provider: example docsLink: 'https://example.org/docs/index.html' quickStart: '' getStartedMarkDown: >- # Example Enter text for the information panel. description: >- Enter summary text for the tile. category: Self-managed | Partner managed | Red Hat managed修改应用程序代码中的参数。
提示要查看 YAML 文件示例,点 Home
API Explorer,选择 OdhApplication,点 Instances 选项卡,选择一个实例,然后点击 YAML 选项卡。- 点 Create。此时会出现应用程序详情页面。
- 登录到 OpenShift AI。
-
在左侧菜单中,点击 Applications
Explore。 - 找到应用程序的新标题并点它。
- 在应用程序的信息窗格中,单击 启用。
验证
-
在 OpenShift AI 仪表板的左侧菜单中,点 Applications
Enabled 并验证您的应用程序是否可用。