第 2 章 Red Hat Developer Hub default configuration
You can deploy a standard Red Hat Developer Hub (RHDH) instance, understand the structure, and tailor RHDH instance to meet your needs.
2.1. Red Hat Developer Hub default configuration guide 复制链接链接已复制到粘贴板!
The Red Hat Developer Hub (RHDH) Operator creates a set of Kubernetes resources to deploy and manage a Backstage instance. The default configuration for these default resources is defined at the Operator level and can be customized for a specific instance using the Backstage Custom Resource (CR). This approach provides a clear starting point while offering flexibility to tailor each deployment.
The default configuration is stored in a ConfigMap named rhdh-default-config located in the rhdh-operator namespace on OpenShift. This ConfigMap contains the YAML manifests that define the foundational structure of the RHDH instance.
You can create a basic RHDH instance by applying an empty Backstage Custom Resource as follows:
Example creating a RHDH instance
apiVersion: backstage.redhat.com/v1alpha4
kind: Backstage
metadata:
name: my-rhdh-instance
namespace: rhdh
The Operator automatically creates the following resources in the specified RHDH namespace by default based on the default configuration:
| File Name | Resource GVK | Resource Name | Description |
|---|---|---|---|
|
|
|
| (Mandatory) The main Backstage application deployment. |
|
|
|
| (Mandatory) The Backstage application service. |
|
|
|
|
The PostgreSQL database stateful set. Needed if |
|
|
|
|
The PostgreSQL database service. Needed if |
|
|
|
|
The PostgreSQL database credentials secret. Needed if |
|
|
|
| The OpenShift Route to expose Backstage externally. (Optional) Applied to Openshift only. |
|
|
|
|
(Optional) Specifies one or more Backstage |
|
|
|
| (Optional) Specifies additional ConfigMaps to be mounted as files into Backstage Pod. |
|
|
|
| (Optional) Specifies additional ConfigMaps to be exposed as environment variables into Backstage Pod. |
|
|
|
| (Optional) Specifies additional Secrets to be mounted as files into Backstage Pod. |
|
|
|
| (Optional) Specifies additional Secrets to be exposed as environment variables into Backstage Pod. |
|
|
|
| (Optional) Specifies the dynamic plugins that the Operator installs into the Backstage instance. |
|
|
list of |
| (Optional) The Persistent Volume Claim for PostgreSQL database. |
{cr-name} is the name of the Backstage Custom Resource, for example 'my-rhdh-instance' in the above example.