搜索

第 2 章 管理仪表板中显示的应用程序

download PDF

2.1. 将应用程序添加到仪表板中

如果您在 OpenShift Container Platform 集群中安装了应用程序,您可以将应用程序的标题添加到 OpenShift AI 仪表板(Application Enabled 页面)中,使其可以被 OpenShift AI 用户访问。

先决条件

  • 具有 OpenShift Container Platform 集群的集群管理员特权。
  • 仪表板配置启用选项被设置为 true (默认值)。请注意,管理员用户可以禁用此功能,如 防止用户将应用程序添加到仪表板 中所述。

流程

  1. 以集群管理员身份登录 OpenShift Container Platform 控制台。
  2. Administrator 视角中,点 Home API Explorer
  3. API Explorer 页面中,搜索 OdhApplication kind。
  4. OdhApplication kind 打开资源详情页面。
  5. OdhApplication details 页面中,从 Project 列表中选择 redhat-ods-applications 项目。
  6. 实例 选项卡。
  7. 单击 Create OdhApplication
  8. 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 | {org-name} managed
  9. 修改应用程序代码中的参数。

    提示

    要查看 YAML 文件示例,点 Home API Explorer,选择 OdhApplication,点 Instances 选项卡,选择一个实例,然后点击 YAML 选项卡。

  10. Create。此时会出现应用程序详情页面。
  11. 登录到 OpenShift AI。
  12. 在左侧菜单中,点击 Applications Explore
  13. 找到应用程序的新标题并点它。
  14. 在应用程序的信息窗格中,单击 启用

验证

  • 在 OpenShift AI 仪表板的左侧菜单中,点 Applications Enabled 并验证您的应用程序是否可用。
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.