A Helm chart for deploying Red Hat Developer Hub. 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.5/html-single/telemetry_data_collection/index
About this chart
RHDH Backstage Helm Chart for OpenShift (Community Version)
A Helm chart for deploying Red Hat Developer Hub.
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.5/html-single/telemetry_data_collection/index
Homepage: https://redhat-developer.github.io/rhdh-chart/
Productized RHDH
For the PRODUCTIZED version of this chart, see:
- https://github.com/rhdh-bot/openshift-helm-charts - CI builds for testing purposes only
- https://github.com/openshift-helm-charts/charts - official releases to https://charts.openshift.io/
Maintainers
| Name | Url | |
|---|---|---|
| Red Hat Developer Hub Team | https://github.com/redhat-developer/rhdh-chart |
Source Code
RHDH Backstage chart is an opinionated flavor of the upstream chart located at backstage/charts. It extends the upstream chart with additional OpenShift specific functionality and provides opinionated values.
Backstage is an open platform for building developer portals. Powered by a centralized software catalog, Backstage restores order to your microservices and infrastructure and enables your product teams to ship high-quality code quickly — without compromising autonomy.
Backstage unifies all your infrastructure tooling, services, and documentation to create a streamlined development environment from end to end.
This chart offers an opinionated OpenShift-specific experience. It is based on and directly depends on an upstream canonical Backstage Helm chart. For less opinionated experience, please consider using the upstream chart directly.
This chart extends all the features in the upstream chart in addition to including OpenShift only features. It is not recommended to use this chart on other platforms.
TL;DR
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add backstage https://backstage.github.io/charts
helm repo add redhat-developer https://redhat-developer.github.io/rhdh-chart
helm install my-backstage redhat-developer/backstage
Introduction
This chart bootstraps a Backstage deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.25+ (OpenShift 4.12+)
- Helm 3.10+ or latest release
- PV provisioner support in the underlying infrastructure
- Backstage container image
Usage
Charts are available in the following formats:
Installing from the Chart Repository
The following command can be used to add the chart repository:
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add backstage https://backstage.github.io/charts
helm repo add redhat-developer https://redhat-developer.github.io/rhdh-chart
Once the chart has been added, install this chart. However before doing so, please review the default values.yaml and adjust as needed.
-
To get proper connection between frontend and backend of Backstage please update the
apps.example.comto match your cluster host:global: clusterRouterBase: apps.example.comTip: you can use
helm upgrade -i --set global.clusterRouterBase=apps.example.com ...instead of a value file -
If your cluster doesn't provide PVCs, you should disable PostgreSQL persistence via:
upstream: postgresql: primary: persistence: enabled: false
helm upgrade -i <release_name> redhat-developer/backstage
Installing from an OCI Registry
Note: this repo replaces https://github.com/janus-idp/helm-backstage, which has been deprecated in Feb 2024.
Charts are also available in OCI format. The list of available releases can be found here.
Install one of the available versions:
helm upgrade -i <release_name> oci://ghcr.io/redhat-developer/rhdh-chart/backstage --version=<version>
Tip: List all releases using
helm list
Testing a Release
Once an Helm Release has been deployed, you can test it using the helm test command:
helm test <release_name>
This will run a simple Pod in the cluster to check that the application deployed is up and running.
You can control whether to disable this test pod or you can also customize the image it leverages.
See the test.enabled and test.image parameters in the values.yaml file.
Tip: Disabling the test pod will not prevent the
helm testcommand from passing later on. It will simply report that no test suite is available.
Below are a few examples:
helm install <release_name> <repo_or_oci_registry> \
--set test.enabled=false
helm install <release_name> <repo_or_oci_registry> \
--set test.image.repository=curl/curl-base \
--set test.image.tag=8.11.1
Uninstalling the Chart
To uninstall/delete the my-backstage-release deployment:
helm uninstall my-backstage-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Requirements
Kubernetes: >= 1.25.0-0
| Repository | Name | Version |
|---|---|---|
| https://backstage.github.io/charts | upstream(backstage) | 2.5.1 |
| https://charts.bitnami.com/bitnami | common | 2.30.0 |
Values
| Key | Description | Type | Default |
|---|---|---|---|
| global.auth | Enable service authentication within Backstage instance | object | {"backend":{"enabled":true,"existingSecret":"","value":""}} |
| global.auth.backend | Backend service to service authentication Ref: https://backstage.io/docs/auth/service-to-service-auth/ | object | {"enabled":true,"existingSecret":"","value":""} |
| global.auth.backend.enabled | Enable backend service to service authentication, unless configured otherwise it generates a secret value | bool | true |
| global.auth.backend.existingSecret | Instead of generating a secret value, refer to existing secret | string | "" |
| global.auth.backend.value | Instead of generating a secret value, use the following value | string | "" |
| global.clusterRouterBase | Shorthand for users who do not want to specify a custom HOSTNAME. Used ONLY with the DEFAULT upstream.backstage.appConfig value and with OCP Route enabled. | string | "apps.example.com" |
| global.dynamic.includes | Array of YAML files listing dynamic plugins to include with those listed in the plugins field. Relative paths are resolved from the working directory of the initContainer that will install the plugins (/opt/app-root/src). | list | ["dynamic-plugins.default.yaml"] |
| global.dynamic.includes[0] | List of dynamic plugins included inside the janus-idp/backstage-showcase container image, some of which are disabled by default. This file ONLY works with the janus-idp/backstage-showcase container image. | string | "dynamic-plugins.default.yaml" |
| global.dynamic.plugins | List of dynamic plugins, possibly overriding the plugins listed in includes files. Every item defines the plugin package as a NPM package spec, an optional pluginConfig with plugin-specific backstage configuration, and an optional disabled flag to disable/enable a plugin listed in includes files. It also includes an integrity field that is used to verify the plugin package integrity. | list | [] |
| global.host | Custom hostname shorthand, overrides global.clusterRouterBase, upstream.ingress.host, route.host, and url values in upstream.backstage.appConfig. | string | "" |
| orchestrator.enabled | bool | false | |
| orchestrator.serverlessLogicOperator.enabled | bool | false | |
| orchestrator.serverlessOperator.enabled | bool | false | |
| orchestrator.sonataflowPlatform.createDBJobImage | Image for the container used by the create-db job | string | "postgres:15" |
| orchestrator.sonataflowPlatform.eventing.broker.name | string | "" | |
| orchestrator.sonataflowPlatform.eventing.broker.namespace | string | "" | |
| orchestrator.sonataflowPlatform.externalDBName | Name for the user-configured external Database | string | "" |
| orchestrator.sonataflowPlatform.externalDBsecretRef | Secret name for the user-created secret to connect an external DB | string | "" |
| orchestrator.sonataflowPlatform.initContainerImage | Image for the init container used by the create-db job | string | "busybox" |
| orchestrator.sonataflowPlatform.monitoring.enabled | bool | true | |
| orchestrator.sonataflowPlatform.resources.limits.cpu | string | "500m" | |
| orchestrator.sonataflowPlatform.resources.limits.memory | string | "1Gi" | |
| orchestrator.sonataflowPlatform.resources.requests.cpu | string | "250m" | |
| orchestrator.sonataflowPlatform.resources.requests.memory | string | "64Mi" | |
| route | OpenShift Route parameters | object | {"annotations":{},"enabled":true,"host":"{{ .Values.global.host }}","path":"/","tls":{"caCertificate":"","certificate":"","destinationCACertificate":"","enabled":true,"insecureEdgeTerminationPolicy":"Redirect","key":"","termination":"edge"},"wildcardPolicy":"None"} |
| route.annotations | Route specific annotations | object | {} |
| route.enabled | Enable the creation of the route resource | bool | true |
| route.host | Set the host attribute to a custom value. If not set, OpenShift will generate it, please make sure to match your baseUrl | string | "{{ .Values.global.host }}" |
| route.path | Path that the router watches for, to route traffic for to the service. | string | "/" |
| route.tls | Route TLS parameters Ref: https://docs.openshift.com/container-platform/4.9/networking/routes/secured-routes.html | object | {"caCertificate":"","certificate":"","destinationCACertificate":"","enabled":true,"insecureEdgeTerminationPolicy":"Redirect","key":"","termination":"edge"} |
| route.tls.caCertificate | Cert authority certificate contents. Optional | string | "" |
| route.tls.certificate | Certificate contents | string | "" |
| route.tls.destinationCACertificate | Contents of the ca certificate of the final destination. When using reencrypt termination this file should be provided in order to have routers use it for health checks on the secure connection. If this field is not specified, the router may provide its own destination CA and perform hostname validation using the short service name (service.namespace.svc), which allows infrastructure generated certificates to automatically verify. | string | "" |
| route.tls.enabled | Enable TLS configuration for the host defined at route.host parameter | bool | true |
| route.tls.insecureEdgeTerminationPolicy | Indicates the desired behavior for insecure connections to a route. While each router may make its own decisions on which ports to expose, this is normally port 80. The only valid values are None, Redirect, or empty for disabled. | string | "Redirect" |
| route.tls.key | Key file contents | string | "" |
| route.tls.termination | Specify TLS termination. | string | "edge" |
| route.wildcardPolicy | Wildcard policy if any for the route. Currently only 'Subdomain' or 'None' is allowed. | string | "None" |
| test | Test pod parameters | object | {"enabled":true,"image":{"registry":"quay.io","repository":"curl/curl","tag":"latest"}} |
| test.enabled | Whether to enable the test-connection pod used for testing the Release using helm test. | bool | true |
| test.image.registry | Test connection pod image registry | string | "quay.io" |
| test.image.repository | Test connection pod image repository. Note that the image needs to have both the sh and curl binaries in it. | string | "curl/curl" |
| test.image.tag | Test connection pod image tag. Note that the image needs to have both the sh and curl binaries in it. | string | "latest" |
| upstream | Upstream Backstage chart configuration | object | Use Openshift compatible settings |
| upstream.backstage.extraVolumes[0] | Ephemeral volume that will contain the dynamic plugins installed by the initContainer below at start. | object | {"ephemeral":{"volumeClaimTemplate":{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"5Gi"}}}}},"name":"dynamic-plugins-root"} |
| upstream.backstage.extraVolumes[0].ephemeral.volumeClaimTemplate.spec.resources.requests.storage | Size of the volume that will contain the dynamic plugins. It should b |
Deploy backstage with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has backstage 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartbackstage is pinned at v4.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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