第3章 ダッシュボードに表示されるアプリケーションの管理
3.1. ダッシュボードへのアプリケーションの追加 リンクのコピーリンクがクリップボードにコピーされました!
OpenShift AI 管理者は、OpenShift クラスターにアプリケーションをインストールした場合、OpenShift AI ユーザーがそのアプリケーションにアクセスできるように、アプリケーションのタイルを OpenShift AI ダッシュボード (Applications
前提条件
- OpenShift AI 管理者特権を持っている。
spec.dashboardConfig.enablementダッシュボード設定オプションがtrue(デフォルト) に設定されている。ダッシュボード設定オプションの設定に関する詳細は、ダッシュボードのカスタマイズ を参照してください。
手順
- OpenShift AI 管理者として OpenShift コンソールにログインします。
-
Administrator パースペクティブで、Home
API Explorer をクリックします。 -
検索バーに
OdhApplicationと入力して、種類別にフィルタリングします。 -
OdhApplicationカスタムリソース (CR) をクリックして、リソースの詳細ページを開きます。 -
Project リストから、OpenShift AI アプリケーションの namespace を選択します。デフォルトは
redhat-ods-applicationsです。 - Instances タブをクリックします。
- 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 をクリックします。 - アプリケーションの新しいタイルを見つけてクリックします。
- アプリケーションの情報ペインで、Enable をクリックします。
検証
-
OpenShift AI ダッシュボードの左側のメニューで、Applications
Enabled をクリックし、アプリケーションが使用可能であることを確認します。