Chapter 1. Installing Red Hat Developer Hub on OpenShift Container Platform with the Operator
You can install Red Hat Developer Hub on OpenShift Container Platform by using the Red Hat Developer Hub Operator in the OpenShift Container Platform console.
1.1. Installing the Red Hat Developer Hub Operator Copy linkLink copied to clipboard!
As an administrator, you can install the Red Hat Developer Hub Operator. Authorized users can use the Operator to install Red Hat Developer Hub on Red Hat OpenShift Container Platform (OpenShift Container Platform) and supported Kubernetes platforms. For more information on supported platforms and versions, see the Red Hat Developer Hub Life Cycle page.
Containers are available for the following CPU architectures:
-
AMD64 and Intel 64 (
x86_64)
Prerequisites
- You are logged in as an administrator on the OpenShift Container Platform web console.
- You have configured the appropriate roles and permissions within your project to create or access an application. For more information, see the {ocp-docs-link}/html-single/building_applications/index#building-applications-overview[Red Hat OpenShift Container Platform documentation on Building applications].
- You have installed Red Hat OpenShift Container Platform 4.14 to 4.18.
- Make sure that your system meets the minimum sizing requirements. See Sizing requirements for Red Hat Developer Hub.
Procedure
- In the navigation menu of the OpenShift Container Platform console, click Operators > OperatorHub.
- In the Filter by keyword box, enter Developer Hub and click the Red Hat Developer Hub Operator card.
- On the Red Hat Developer Hub Operator page, read the information about the Operator and click Install to open the Install Operator page.
After the Operator is successfully installed, provision your custom configuration:
Before you create a Developer Hub instance, you must create the required config map and Secret resources in your project. These include the
baseUrland service-to-service authentication secrets.For detailed steps, see Provisioning your custom Red Hat Developer Hub configuration.
From the Update channel drop-down menu, select the update channel that you want to use, for example, fast or fast-1.6.
ImportantThe `fast channel includes all of the updates available for a particular version. Any update might introduce unexpected changes in your Red Hat Developer Hub deployment. Check the release notes for details about any potentially breaking changes.
The fast-1.6 channel only provides z-stream updates, for example, updating from version 1.6.1 to 1.6.2. If you want to update the Red Hat Developer Hub y-version in the future, for example, updating from 1.6 to 1.7, you must switch to the fast-1.7 channel manually.
- From the Version drop-down menu, select the version of the Red Hat Developer Hub Operator that you want to install. The default version is the latest version available in the selected channel.
Select the Operator Installation mode.
NoteThe All namespaces on the cluster (default) option is selected by default. The Specific namespace on the cluster option is not currently supported.
In the Installed Namespace field, do one of the following actions:
- Select Operator recommended Namespace to create and use the rhdh-operator namespace. This option is selected by default.
Select Select a Namespace to use an alternative namespace.
From the Select Project drop-down menu, do one of the following actions:
- Select an existing project.
Select Create Project to create a new project for the Operator.
On the Create Project dialog, enter text into the required fields and click Create.
ImportantFor enhanced security, better control over the Operator lifecycle, and preventing potential privilege escalation, install the Red Hat Developer Hub Operator in a dedicated default
rhdh-operatornamespace. You can restrict other users' access to the Operator resources through role bindings or cluster role bindings.You can also install the Operator in another namespace by creating the necessary resources, such as an Operator group. For more information, see Installing global Operators in custom namespaces.
However, if the Red Hat Developer Hub Operator shares a namespace with other Operators, then it shares the same update policy as well, preventing the customization of the update policy. For example, if one Operator is set to manual updates, the Red Hat Developer Hub Operator update policy is also set to manual. For more information, see Colocation of Operators in a namespace.
Select the Update approval method for the Operator.
- If you select the Automatic option, the Operator is updated without requiring manual confirmation.
- If you select the Manual option, a notification opens when a new update is released in the update channel. The update must be manually approved by an administrator before installation can begin.
Click Install.
NoteIf you selected a Manual approval strategy, the upgrade status of the subscription remains Upgrading until you review and approve the install plan. After you click Approve on the Install Plan page, the subscription upgrade status changes to Up to date.
If you selected an Automatic approval strategy, the upgrade status should resolve to Up to date without intervention.
Verification
- Immediately after the Operator is installed, the dialog box on the OperatorHub page displays the Installed operator: ready for use message.
From the dialog box, do one of the following actions:
- Click View Operator to open the Operator details page for the Red Hat Developer Hub Operator.
Click View all installed operators to open the Installed Operators page.
- From the list of installed Operators, locate the Red Hat Developer Hub Operator name and details.
- Click Red Hat Developer Hub Operator to open the Operator details page for the Red Hat Developer Hub Operator.
1.2. Deploying Red Hat Developer Hub on OpenShift Container Platform with the Operator Copy linkLink copied to clipboard!
As a developer, you can deploy a Red Hat Developer Hub instance on OpenShift Container Platform by using the Developer Catalog in the Red Hat OpenShift Container Platform web console. This deployment method uses the Red Hat Developer Hub Operator.
Prerequisites
-
You have set the
baseUrlin yourapp-config.yamlto match the external URL of your Developer Hub instance. Without it, frontend and backend services cannot communicate, and features might not work as expected. - An OpenShift Container Platform administrator has installed the Red Hat Developer Hub Operator.
-
You have provisioned your custom config maps and secrets in your
<my-rhdh-project>project. - You have authored your Backstage custom resource.
Procedure
-
In the OpenShift Container Platform web console, select your
<{my_product_namespace}>project, then click Add. - From the Developer Catalog panel, click Operator Backed.
- In the Filter by keyword box, enter Developer Hub and click the Red Hat Developer Hub card.
Provision your custom configuration using the following template:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Use a config map named
app-config-rhdhto provide yourapp-config.yamlfile, and a Secret for service-to-service authentication (such asBACKEND_SECRET).To create and apply these configuration resources, follow the steps in Provisioning your custom Red Hat Developer Hub configuration for the full procedure.
NoteThe
app-config-rhdhconfig map must include your customizedapp-config.yamlfile. This config map is mounted into the Developer Hub container at runtime.Create a secret named
my-rhdh-secretsand add a key namedBACKEND_SECRETwith aBase64-encodedstring as value, as shown in the following example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteEnsure that your secret includes
BACKEND_SECRET, used for service-to-service authentication. For structure and provisioning steps, see Provisioning your custom Red Hat Developer Hub configuration.- Click Create.
- Add your Backstage custom resource content.
- On the Create Backstage page, click Create.
Verification
After the pods are ready, you can access the Red Hat Developer Hub platform by opening the URL.
- Confirm that the pods are ready by clicking the pod in the Topology view and confirming the Status in the Details panel. The pod status is Active when the pod is ready.
From the Topology view, click the Open URL icon on the Developer Hub pod.