Chapter 1. Installing Red Hat Developer Hub on OpenShift Dedicated on GCP using the Operator
You can install Developer Hub on OpenShift Dedicated on GCP using the Red Hat Developer Hub Operator.
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 administrator access to OpenShift Dedicated cluster and GCP project.
- Make sure that your system meets the minimum sizing requirements. See Sizing requirements for Red Hat Developer Hub.
Procedure
- In the OpenShift Container Platform web console menu, go to Operators > OperatorHub.
- In the Filter by keyword field, enter Developer Hub and click the Red Hat Developer Hub Operator card.
- On the Red Hat Developer Hub Operator page, click Install.
- After the installation completes, navigate to Installed Operators and select Red Hat Developer Hub Operator.
Provision your custom configuration:
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>__You must create a config map named
app-config-rhdhand a Kubernetes Secret containing theBACKEND_SECRET. These resources are used by the Developer Hub instance for authentication and application settings.For further steps, see Provisioning your custom Red Hat Developer Hub configuration.
Create a config map named
app-config-rhdhthat includes yourapp-config.yamlas shown: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>__Create a secret named
my-rhdh-secretsand add a key namedBACKEND_SECRETwith aBase64-encodedstring as value: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- Return to the Developer Hub Operator page and click Create New Instance.
- Specify the name and target namespace for the Developer Hub deployment.
- Configure required options such as Git integration, secrets, and user permissions.
- Review the configuration, select deployment options, and click Create.
Verification
- To access the Developer Hub, navigate to the Developer Hub URL provided in the OpenShift Container Platform web console.
Additional resources