OpenShift Dedicated on Google Cloud Platform への Red Hat Developer Hub のインストール


Red Hat Developer Hub 1.6

Operator または Helm チャートを使用して、Red Hat OpenShift Dedicated 上で Red Hat Developer Hub を実行します。

Red Hat Customer Content Services

概要

プラットフォーム管理者は、認可された他のユーザーが Operator または Helm チャートのいずれかを使用して Google Cloud Platform (GCP) 上の Red Hat OpenShift Dedicated に Red Hat Developer Hub (RHDH) インスタンスをデプロイできるよう、ロール、権限、およびその他の設定を行うことができます。

はじめに

次のいずれかの方法を使用して、OpenShift Dedicated on Google Cloud Platform (GCP) に Developer Hub をインストールできます。

  • Red Hat Developer Hub Operator
  • Red Hat Developer Hub Helm チャート
重要

Developer Hub インスタンスの外部 URL と一致するように、app-config.yamlbaseUrl を設定する必要があります。この値は、Red Hat Developer Hub が正しく機能するために必要です。設定されていない場合、フロントエンドサービスとバックエンドサービスが正しく通信できず、機能が期待どおりに動作しない可能性があります。

第1章 Operator を使用して OpenShift Dedicated on GCP に Red Hat Developer Hub をインストールする

Red Hat Developer Hub Operator を使用して、OpenShift Dedicated on GCP に Developer Hub をインストールできます。

前提条件

  • 有効な GCP アカウントを持っている。
  • OpenShift Dedicated クラスターが GCP 上で実行されている。詳細は、Red Hat OpenShift Dedicated ドキュメントの GCP でのクラスターの作成 を参照してください。
  • OpenShift Dedicated クラスターと GCP プロジェクトへの管理者アクセス権がある。

手順

  1. OpenShift Container Platform Web コンソールメニューで、Operators > OperatorHub に移動します。
  2. Filter by keyword フィールドに Developer Hub と入力し、Red Hat Developer Hub Operator カードをクリックします。
  3. Red Hat Developer Hub Operator ページで、Install をクリックします。
  4. インストールが完了したら、Installed Operators に移動し、Red Hat Developer Hub Operator を選択します。
  5. カスタム設定をプロビジョニングします。

    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: app-config-rhdh
    data:
      "app-config-rhdh.yaml": |
        app:
          title: Red Hat Developer Hub
          baseUrl: https://__<my_developer_hub_url>__
        backend:
          auth:
            externalAccess:
                - type: legacy
                  options:
                    subject: legacy-default-config
                    secret: "${BACKEND_SECRET}"
          baseUrl: https://__<my_developer_hub_url>__
          cors:
            origin: https://__<my_developer_hub_url>__

    app-config-rhdh という名前の config map と、BACKEND_SECRET を含む Kubernetes Secret を作成する必要があります。これらのリソースは、Developer Hub インスタンスによって認証とアプリケーション設定に使用されます。

    詳細な手順は、カスタム Red Hat Developer Hub 設定のプロビジョニング を参照してください。

  6. 次のように、app-config.yaml を含む app-config-rhdh という名前の config map を作成します。

    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: app-config-rhdh
    data:
      "app-config-rhdh.yaml": |
        app:
          title: Red Hat Developer Hub
          baseUrl: https://__<my_developer_hub_url>__
        backend:
          auth:
            externalAccess:
                - type: legacy
                  options:
                    subject: legacy-default-config
                    secret: "${BACKEND_SECRET}"
          baseUrl: https://__<my_developer_hub_url>__
          cors:
            origin: https://__<my_developer_hub_url>__
  7. my-rhdh-secrets という名前のシークレットを作成し、Base64-encoded 文字列を値として持つ BACKEND_SECRET という名前のキーを追加します。

    apiVersion: v1
    kind: Secret
    metadata:
      name: my-rhdh-secrets
    stringData:
      # TODO: Add the necessary auth secrets for service-to-service auth setup
      BACKEND_SECRET: "xxx" # Replace with your Base64-encoded secret
  8. Developer Hub Operator ページに戻り、Create New Instance をクリックします。
  9. Developer Hub デプロイメントの名前とターゲット namespace を指定します。
  10. Git 統合、シークレット、ユーザー権限などの必要なオプションを設定します。
  11. 設定を確認し、デプロイメントオプションを選択して、Create をクリックします。

検証

  • Developer Hub にアクセスするには、OpenShift Container Platform Web コンソールで提供されている Developer Hub URL に移動します。

第2章 Helm チャートを使用して OpenShift Dedicated on GCP に Red Hat Developer Hub をインストールする

Red Hat Developer Hub Helm チャートを使用して、OpenShift Dedicated on GCP に Developer Hub をインストールできます。

前提条件

  • 有効な GCP アカウントを持っている。
  • OpenShift Dedicated クラスターが GCP 上で実行されている。詳細は、Red Hat OpenShift Dedicated ドキュメントの GCP でのクラスターの作成 を参照してください。
  • Helm 3 以降がインストールされている。

手順

  1. Developer Hub Web コンソールの Developer パースペクティブから、+Add をクリックします。
  2. Developer Catalog パネルから、Helm Chart をクリックします。
  3. Filter by keyword ボックスに Developer Hub と入力し、Red Hat Developer Hub カードをクリックします。
  4. Red Hat Developer Hub ページで、Create をクリックします。
  5. クラスターから、OpenShift Container Platform ルーターホスト (例: apps.<clusterName>.com) をコピーします。
  6. ラジオボタンを選択して、Form ビューまたは YAML ビューのいずれかを使用して Developer Hub インスタンスを設定します。

    重要

    Helm チャートを使用して Developer Hub をデプロイする前に、インスタンスのパブリック baseUrl などのカスタム設定を定義する必要があります。baseUrl を設定しないと、アプリケーションは正しく機能しません。この設定は、Helm インストールウィザードの Form view または YAML view を通じて定義できます。

    baseUrl を設定するには、Helm 設定で次の値を設定します。

    global:
      app:
        baseUrl: https://<your-developer-hub-url>
      backend:
        baseUrl: https://<your-developer-hub-url>
        cors:
          origin: https://<your-developer-hub-url>

    values.yaml ファイルで、追加のシークレット、プラグイン、および高度な設定を定義することもできます。詳細な手順は、カスタム Red Hat Developer Hub 設定のプロビジョニング を参照してください。

    デフォルトでは Form view が選択されています。

    1. Form view を使用する場合

      1. Form view を使用してインスタンスを設定するには、Root Schema → global → Enable service authentication within Backstage instance に移動し、OpenShift Container Platform ルーターホストをフォーム上のフィールドに貼り付けます。
    2. YAML view を使用する場合

      1. YAML ビューを使用してインスタンスを設定するには、次の例に示すように、global.clusterRouterBase パラメーター値に OpenShift Container Platform ルーターのホスト名を貼り付けます。

        global:
          auth:
            backend:
              enabled: true
          clusterRouterBase: apps.<clusterName>.com
          # other Red Hat Developer Hub Helm Chart configurations
  7. 必要に応じて他の値を編集し、Create をクリックして、データベースと Developer Hub が起動するのを待ちます。

検証

  • Developer Hub にアクセスするには、Open URL アイコンをクリックします。

法律上の通知

Copyright © 2025 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

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

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

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

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

会社概要

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

Theme

© 2026 Red Hat
トップに戻る