Chapter 2. Installing Red Hat Developer Hub on OpenShift Dedicated on GCP using the Helm Chart
You can install Developer Hub on OpenShift Dedicated on GCP using the Red Hat Developer Hub Helm Chart.
Prerequisites
- You have a valid GCP account.
- Your OpenShift Dedicated cluster is running on GCP. For more information, see Creating a cluster on GCP in Red Hat OpenShift Dedicated documentation.
- You have installed Helm 3 or the latest.
Procedure
- From the Developer perspective on the Developer Hub web console, click +Add.
- From the Developer Catalog panel, click Helm Chart.
- In the Filter by keyword box, enter Developer Hub and click the Red Hat Developer Hub card.
- From the Red Hat Developer Hub page, click Create.
-
From your cluster, copy the OpenShift Container Platform router host (for example:
apps.<clusterName>.com). Select the radio button to configure the Developer Hub instance with either the form view or YAML view.
ImportantBefore deploying Developer Hub using the Helm chart, you must define custom configuration settings such as the public
baseUrlfor your instance. Without settingbaseUrl, the application cannot function correctly. You can define this configuration either through the Form view or the YAML view in the Helm install wizard.To configure the
baseUrl, set the following values in your Helm configuration:global: app: baseUrl: https://<your-developer-hub-url> backend: baseUrl: https://<your-developer-hub-url> cors: origin: https://<your-developer-hub-url>You can also define additional secrets, plugins, and advanced configuration in your
values.yamlfile. For full instructions, see: Provisioning your custom Red Hat Developer Hub configuration.The Form view is selected by default.
Using Form view
-
To configure the instance with the Form view, go to Root Schema
global Enable service authentication within Backstage instance and paste your OpenShift Container Platform router host into the field on the form.
-
To configure the instance with the Form view, go to Root Schema
Using YAML view
To configure the instance with the YAML view, paste your OpenShift Container Platform router hostname in the
global.clusterRouterBaseparameter value as shown in the following example:global: auth: backend: enabled: true clusterRouterBase: apps.<clusterName>.com # other Red Hat Developer Hub Helm Chart configurations
- Edit the other values if needed, then click Create and wait for the database and Developer Hub to start.
Verification
- To access the the Developer Hub, click the Open URL icon.
Additional resources