redhat-developer-hub

by joaquinito2051

Helm chartv2.1.0App 2.1.0Apache-2.0

A Helm chart for deploying Red Hat Developer Hub, which is a Red Hat supported version of Backstage. The telemetry data collection feature is enabled by default. Red Hat Developer Hub sends telemetry data to Red Hat by using the `backstage-plugin-analytics-provider-segment` plugin. To disable this and to learn what data is being collected, see https://docs.redhat.com/en/documentation/red_hat_developer_hub/1.10/html-single/telemetry_data_collection_and_analysis/index

About this chart

Red Hat Developer Hub is a Red Hat supported version of Backstage. It comes with pre-built plug-ins and configuration settings, supports use of an external database, and can help streamline the process of setting up a self-managed internal developer portal for adopters who are just starting out.

Dependencies

The helm chart packages the following subcharts. Their respective values are available under the subchart name key in Helm values.

RepositoryNameVersion
https://charts.bitnami.com/bitnamicommon2.41.0
oci://registry-1.docker.io/bitnamichartspostgresql16.2.5

Telemetry data collection

The telemetry data collection feature is enabled by default. Red Hat Developer Hub sends telemetry data to Red Hat by using the backstage-plugin-analytics-provider-segment plugin. To disable this and to learn what data is being collected, see Red Hat Developer Hub documentation on telemetry data collection.

Installation

Important: This chart uses PostgreSQL 18 for its embedded database. When upgrading an existing deployment that uses the embedded PostgreSQL 15 database, back up the database, provision fresh PostgreSQL 18 storage, and restore the backup. PostgreSQL 18 cannot directly reuse a PostgreSQL 15 data directory or persistent volume.

Prerequisites

The helm chart deploys Red Hat Developer Hub and includes the following prerequisites:

Procedure

OpenShift Helm Catalog

  1. Click the "Create" button at the top of the modal dialog on this page

  2. Update host settings, so Backstage can create proper connection between its frontend and backend:

    • If you plan to use the default OpenShift router, please update:

      openshift:
        clusterRouterBase: apps.example.com
      
    • If you want to host Red Hat Developer Hub on a custom host or if you are not using OpenShift, please update:

      host: backstage.example.com
      
    • If you are not using OpenShift, please instruct the chart not to deploy Route resource and use Ingress instead:

      openshift:
        route:
          enabled: false
      ingress:
        enabled: true
      
  3. Update your storage preference. If you do not want persistent storage attached to the deployed database, please update:

    postgresql:
      primary:
        persistence:
          enabled: false
    

Manual installation from the Chart Repository

  1. Add the chart repository using the following command:

    helm repo add openshift-helm-charts https://charts.openshift.io/
    
  2. Download the default values and review them:

    helm show values openshift-helm-charts/redhat-developer-hub > values.yaml
    
  3. Perform the required value changes mentioned in the section OpenShift Helm Catalog above in steps 2 and 3.

  4. Install the chart:

    helm upgrade -i <release_name> -f values.yaml openshift-helm-charts/redhat-developer-hub
    

Uninstalling the Chart

To uninstall/delete the <release_name> helm release manually, run:

helm uninstall <release_name>

Values

KeyDescriptionTypeDefault
affinityAffinity rules for pod assignment.object{}
appConfigInline Backstage app-config YAML. Rendered into a ConfigMap and mounted as app-config-from-configmap.yaml.objectDefault config with base URLs, CORS, database connection, and backend auth.
argsOverrideOverride the container arguments entirely. When set, system config arguments are NOT added automatically; you must include them yourself.list[]
authService-to-service authentication configuration.object{"backend":{"enabled":true,"existingSecretRef":{"key":"backend-secret","name":""},"value":""}}
auth.backend.enabledEnable backend service-to-service authentication. Generates a random secret unless existingSecretRef is set or value is provided. Disable if you inject the secret via extraEnvFrom or extraEnv instead.booltrue
auth.backend.existingSecretRefReference an existing Secret instead of generating one. When not set, the chart auto-generates a random token.object{"key":"backend-secret","name":""}
auth.backend.existingSecretRef.keyKey within the Secret that holds the backend auth token.string"backend-secret"
auth.backend.existingSecretRef.nameName of the existing Secret. When empty, the chart generates one.string""
auth.backend.valueUse a specific value instead of generating one.string""
autoscalingHorizontal Pod Autoscaler configuration.object{"enabled":false,"maxReplicas":3,"minReplicas":1,"targetCPUUtilizationPercentage":80}
catalogIndexCatalog index configuration for automatic plugin discovery.object{"extraImages":[],"image":{"digest":"sha256:0e059aa661032f31bc36840b9a177bab13da33c4bc4683fe33bc05d4d05248ca","registry":"registry.access.redhat.com","repository":"rhdh/plugin-catalog-index","tag":""}}
catalogIndex.extraImagesExtra catalog index images for additional plugin discovery in the Extensions UI. Each item must include registry, repository, and tag fields; name and digest are optional. Only catalog entities are extracted from extra images (no dynamic-plugins.default.yaml handling).list[]
commandOverrideOverride the container command.list[]
commonAnnotationsAnnotations applied to ALL chart resources.object{}
commonLabelsLabels applied to ALL chart resources.object{}
containerSecurityContextSecurity context for the main RHDH container (not the Lightspeed Core sidecar or init containers).object{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}
deploymentAnnotationsAnnotations for the Deployment resource (not the pod).object{}
dynamicPluginsDynamic plugin system configuration.object{"includes":["dynamic-plugins.default.yaml"],"initContainer":{"argsOverride":[],"commandOverride":[],"extraArgs":[],"extraEnv":[],"extraVolumeMounts":[],"resources":{"limits":{"cpu":"1000m","ephemeral-storage":"5Gi","memory":"2.5Gi"},"requests":{"cpu":"250m","memory":"256Mi"}},"securityContext":{}},"maxEntrySize":40000000,"plugins":[],"volume":{"emptyDir":{},"ephemeral":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"5Gi"}},"storageClassName":""},"pvc":{"claimName":""},"statefulSetPVC":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"5Gi"}},"storageClassName":""},"type":"ephemeral"}}
dynamicPlugins.includesArray of YAML files listing dynamic plugins to include. Relative paths are resolved from the working directory of the initContainer (/opt/app-root/src).list["dynamic-plugins.default.yaml"]
dynamicPlugins.initContainerConfiguration for the install-dynamic-plugins init container.object{"argsOverride":[],"commandOverride":[],"extraArgs":[],"extraEnv":[],"extraVolumeMounts":[],"resources":{"limits":{"cpu":"1000m","ephemeral-storage":"5Gi","memory":"2.5Gi"},"requests":{"cpu":"250m","memory":"256Mi"}},"securityContext":{}}
dynamicPlugins.initContainer.argsOverrideOverride the default arguments. Leave empty to use the defaults.list[]
dynamicPlugins.initContainer.commandOverrideOverride the default command. Leave empty to use the default (./install-dynamic-plugins.sh /dynamic-plugins-root).list[]
dynamicPlugins.initContainer.extraArgsExtra arguments appended after the default arguments. Ignored when argsOverride is set.list[]
dynamicPlugins.initContainer.extraEnvExtra environment variables appended after the system env vars (NPM_CONFIG_USERCONFIG, MAX_ENTRY_SIZE, CATALOG_INDEX_IMAGE, etc.).list[]
dynamicPlugins.initContainer.extraVolumeMountsAdditional volume mounts appended after the system mounts (dynamic-plugins-root, npmrc, registry-auth, npmcacache, extensions-catalog, temp).list[]
dynamicPlugins.initContainer.resourcesResource requests and limits.object{"limits":{"cpu":"1000m","ephemeral-storage":"5Gi","memory":"2.5Gi"},"requests":{"cpu":"250m","memory":"256Mi"}}
dynamicPlugins.initContainer.securityContextSecurity context for the init container.objectSame as containerSecurityContext
dynamicPlugins.maxEntrySizeMaximum uncompressed size (in bytes) of a single dynamic plugin entry.int40000000
dynamicPlugins.pluginsList of dynamic plugins. Every item defines the plugin package as a NPM package spec or OCI reference.list[]
dynamicPlugins.volumeVolume configuration for the dynamic plugins root directory.object{"emptyDir":{},"ephemeral":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"5Gi"}},"storageClassName":""},"pvc":{"claimName":""},"statefulSetPVC":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"5Gi"}},"storageClassName":""},"type":"ephemeral"}
dynamicPlugins.volume.emptyDirRaw Kubernetes emptyDir volume spec. Used when type is "emptyDir".object{}
dynamicPlugins.volume.ephemeralEphemeral volume configuration. Used when type is "ephemeral". The chart builds the full ephemeral.volumeClaimTemplate.spec from these fields.object{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"5Gi"}},"storageClassName":""}
dynamicPlugins.volume.ephemeral.accessModesAccess modes for the ephemeral PVC.list["ReadWriteOnce"]
dynamicPlugins.volume.ephemeral.resourcesResource requests for the ephemeral PVC.object{"requests":{"storage":"5Gi"}}
dynamicPlugins.volume.ephemeral.storageClassNameStorageClass for the ephemeral volume. When empty, uses global.defaultStorageClass or the cluster default.string""
dynamicPlugins.volume.pvcRaw Kubernetes persistentVolumeClaim volume spec. Used when type is "pvc".object{"claimName":""}
dynamicPlugins.volume.statefulSetPVCStatefulSet-owned PVC volume spec. Used when type is "statefulSetPVC".object{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"5Gi"}},"storageClassName":""}
dynamicPlugins.volume.statefulSetPVC.accessModesAccess modes for the StatefulSet-owned PVC.list["ReadWriteOnce"]
dynamicPlugins.volume.statefulSetPVC.resourcesResource requests for the StatefulSet-owned PVC.object{"requests":{"storage":"5Gi"}}
dynamicPlugins.volume.statefulSetPVC.storageClassNameStorageClass. When empty, uses global.defaultStorageClass or the cluster default.string""
dynamicPlugins.volume.typeVolume type: "ephemeral" (auto-provisioned PVC per pod), "emptyDir" (scratch space, lost on pod restart), "pvc" (pre-existing PersistentVolumeClaim), or "statefulSetPVC" (StatefulSet volumeClaimTemplate; requires workload.kind=StatefulSet).string"ephemeral"
envFromOverrideOverride the container envFrom entirely. When set, extraEnvFrom is ignored. Accepts raw Kubernetes envFrom entries (configMapRef, secretRef, prefix).list[]
envOverrideOverride the container environment variables entirely. When set, system env vars (BACKEND_SECRET, DB credentials, etc.) are NOT added automatically.list[]
externalDatabaseExternal database connection. Used when postgresql.enabled is false. See docs/external-db.md for TLS setup and privilege requirements. When both postgresql.enabled and externalDatabase.host are false/empty, the chart renders no database env vars (BYO configuration via extraEnv or appConfig).object{"existingSecretRef":{"key":"password","name":""},"host":"","port":5432,"user":"postgres"}
externalDatabase.existingSecretRefReference to an existing Secret containing the database password.object{"key":"password","name":""}
externalDatabase.existingSecretRef.keyKey within the Secret that holds the password.string"password"
externalDatabase.existingSecretRef.nameName of the existing Secret.string""
externalDatabase.hostExternal database hostname.string""
externalDatabase.portExternal database port.int5432
externalDatabase.userExternal database user.string"postgres"
extraAppConfigAdditional app-config files from existing ConfigMaps.list[]
extraArgsExtra arguments appended after the system config flags.list[]
extraContainersAdditional sidecar containers. These are ADDED to system containers (e.g. Lightspeed Core sidecar), never replacing them.list[]
extraDeployArray of extra objects to deploy with the release (rendered through tpl). Each element is a complete Kubernetes manifest; Helm template expressions are supported.list[]
extraEnvExtra environment variables appended after the system env vars.list[]
extraEnvFromExtra envFrom entries appended to the container. Accepts

Deploy redhat-developer-hub with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has redhat-developer-hub on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartredhat-developer-hub is pinned at v2.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply