Skip to main content
Redhat Developers  Logo
  • Products

    Platforms

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat AI
      Red Hat AI
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • View All Red Hat Products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat Developer Hub
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat OpenShift Local
    • Red Hat Developer Sandbox

      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Secure Development & Architectures

      • Security
      • Secure coding
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • Product Documentation
    • API Catalog
    • Legacy Documentation
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Customize your deployments with the Red Hat Developer Hub Operator

July 31, 2024
Francisco De Melo Junior
Related topics:
ContainersDeveloper ToolsKubernetesOperators
Related products:
Red Hat Developer HubRed Hat OpenShift Container Platform

Share:

    Red Hat Developer Hub is an enterprise-grade internal developer portal. Combined with Red Hat OpenShift, it allows platform engineering teams to offer software templates, get up to speed on deployments, and follow a company's best practices.

    Red Hat Developer Hub 1.2 introduced several new features:

    • The new Argo CD front-end plug-in has an updated UX, which includes status per environment, and more information for developers.
    • The new Red Hat Developer Hub Orchestrator extends the default scaffolder and allows templates to use eventing, notifications, approvals, retry, and long-running tasks for more sophisticated Software Template automation.
    • The new ScaffoldedFrom metadata item brings greater clarity over component provenance to the software catalog by linking components to the software template that created them.
    • The new Red Hat Developer Hub theme uses the PatternFly design system.

    You can use either a Helm chart or the Red Hat Developer Hub Operator to deploy Red Hat Developer Hub. This article will demonstrate the latter approach.

    Install the Red Hat Developer Hub Operator

    In OperatorHub, search for rhdh and select the Red Hat Developer Hub Operator to install it, as shown in Figure 1.

    OperatorHub > Red Hat Developer Hub Operator.
    Figure 1: Installing the Red Hat Developer Hub operator.

    Red Hat Developer Hub will provide the Backstage custom resource (CR), as shown in the following example:

    apiVersion: rhdh.redhat.com/v1alpha1
    kind: Backstage
    metadata:
      name: developer-hub
      namespace: rhdh-operator
    spec:
      application:
        appConfig:
          mountPath: /opt/app-root/src
        extraFiles:
          mountPath: /opt/app-root/src
        replicas: 1
        route:
          enabled: true
      database:
        enableLocalDb: true

    The Backstage custom resource will result in the following (Figure 2).

    Red Hat Developer Hub > Backstages.
    Figure 2: Red Hat Developer Hub Backstage custom resource.

    To access the Backstage instance, get the route (in this case, the Edge route), which uses the service backstage-developer-hub to connect the pods:

    oc get route
    NAME                      HOST/PORT                                                                                   PATH   SERVICES                  PORT           TERMINATION     WILDCARD
    backstage-developer-hub   backstage-developer-hub-rhdh-operator.apps.example.com   /      backstage-developer-hub   http-backend   edge/Redirect   None

    Then, access Red Hat Developer Hub via a web browser (Figure 3).

    Red Hat Developer Hub > Select a sign-in method.
    Figure 3: Signing in to Red Hat Developer Hub.

    This will bring you to the Red Hat Developer Hub main page, shown in Figure 4.

    Red Hat Developer Hub main page reading Welcome back! at the top.
    Figure 4: The Red Hat Developer Hub homepage.

    Go to $ROUTE/settings for details such as the following:

    • The profile
    • The appearance
    • Developer Hub metadata
    • Backstage identity

    Customization

    Red Hat Developer Hub provides a wide range of customizations via the Backstage custom resource, which offers full control through spec.rawRuntimeConfig.

    This field in the Backstage CR currently allows you to fully customize some of the resources created by the operator (including the application Deployment), by providing a ConfigMap with the whole resource definition. The operator is for advanced or uncommon scenarios because it can detail exactly how the OpenShift resources will be created.

    It currently allows full details, and later it will allow partial patches instead of fully merging (see Janus-idp Pull 388). With the Backstage operator, the user can specify a list of app-config ConfigMaps and Backstage/Red Hat Developer Hub will handle merging them to create an effective app-config.

    The raw ConfigMap can contain several keys, and each key (like deployment.yaml) can override the entire resource definition. Soon, when the Janus-idp PR goes into production, a custom resource field will allow you to specify a partial definition that will be used for merging instead.

    Warning

    There is no validation from the operator on the file. If there are issues and the resource cannot be applied, the error will be conveyed by the operator in the Backstage CR status field.

    Here is an example:

    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: showcase-config
    data:
      deployment.yaml: |-
        apiVersion: apps/v1
        kind: Deployment
        metadata:
          name: backstage
        spec:
          replicas: 1
          selector:
            matchLabels:
              app: backstage  # backstage-<cr-name>
          template:
             metadata:
               labels:
                 app: backstage # backstage-<cr-name>
             spec:
               containers:
                 - name: backstage
                   image: quay.io/janus-idp/backstage-showcase
                   imagePullPolicy: IfNotPresent
                   ports:
                     - name: http
                       containerPort: 7007
                   envFrom:
                     - secretRef:
                         name: postgres-secrets

    Troubleshooting

    To troubleshoot the Red Hat Developer Hub Operator, you can collect two artifacts as follows:

    • The inspect file of the namespace: oc adm inspect ns/namespace_selected
    • The Backstage CR: oc get backstage

    Conclusion

    This article provided a short introduction to the Red Hat Developer Hub Operator and how to customize deployments.

    The customization is quite powerful because it allows you to set Kubernetes deployment-specific specifications. This tool can be useful for support cases, as detailed in the solution Using inspect for DG 8 troubleshooting.

    For any other specific inquiries, open a case with Red Hat support. Our global team of experts can help you with any issues.

    Last updated: September 4, 2025

    Related Posts

    • A developer’s guide to Red Hat Developer Hub and Janus

    • Red Hat Developer Hub: Your gateway to seamless development

    • Achieve more with less using Red Hat Developer Hub's self-service features

    • Announcing Ansible plug-ins for Red Hat Developer Hub

    • 10 tips for better Backstage Software Templates

    • Build your first Software Template for Backstage

    Recent Posts

    • A deep dive into Apache Kafka's KRaft protocol

    • Staying ahead of artificial intelligence threats

    • Strengthen privacy and security with encrypted DNS in RHEL

    • How to enable Ansible Lightspeed intelligent assistant

    • Why some agentic AI developers are moving code from Python to Rust

    What’s up next?

    Learn how to onboard developers onto Red Hat Developer Hub, so they can import and use relevant templates and run the application on the development environment.

    Start the activity
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue