|
1 | 1 |
|
2 | 2 | # Backstage Helm Chart
|
3 | 3 |
|
4 |
| -  |
| 4 | +  |
5 | 5 |
|
6 | 6 | A Helm chart for deploying a Backstage application
|
7 | 7 |
|
@@ -85,6 +85,7 @@ The command removes all the Kubernetes components associated with the chart and
|
85 | 85 |
|
86 | 86 | | Key | Description | Type | Default |
|
87 | 87 | |-----|-------------|------|---------|
|
| 88 | +| backstage.appConfig | Generates ConfigMap and configures it in the Backstage pods | object | `{}` | |
88 | 89 | | backstage.args | | list | `[]` |
|
89 | 90 | | backstage.command[0] | | string | `"node"` |
|
90 | 91 | | backstage.command[1] | | string | `"packages/backend"` |
|
@@ -239,6 +240,21 @@ Now that the ConfigMap has been created on your Kubernetes cluster, you can refe
|
239 | 240 |
|
240 | 241 | The chart will mount the content of the ConfigMap as a new `app-config.extra.yaml` file and automatically pass the extra configuration to your instance.
|
241 | 242 |
|
| 243 | +### Pass configuration to be stored in a ConfigMap |
| 244 | + |
| 245 | +> :warning: In case of using both appConfig and extraAppConfig, appConfig will have higher priority over extraAppConfig. For more information you can check the [Backstage docs](https://backstage.io/docs/conf/writing#configuration-files) and how this [Helm Chart configures the Backstage arguments](templates/backstage-deployment.yaml) |
| 246 | + |
| 247 | +In addition to following the [previous step "Pass extra configuration files"](#pass-extra-configuration-files), you can get the Config Map automatically deployed with this Helm Chart by defining the key `appConfig`: |
| 248 | + |
| 249 | +```diff |
| 250 | + backstage: |
| 251 | ++ appConfig: |
| 252 | ++ app: |
| 253 | ++ baseUrl: https://somedomain.tld |
| 254 | +``` |
| 255 | + |
| 256 | +The chart will mount the content of the ConfigMap as a new `app-config-from-configmap.yaml` file and automatically pass the extra configuration to your instance. |
| 257 | + |
242 | 258 | ### Configuring Chart PostgreSQL
|
243 | 259 |
|
244 | 260 | With the Backstage Helm Chart, it offers - as a subchart - a Bitnami PostgreSQL database. This can be enabled by switching `postgresql.enabled` to true (it is `false` by default). If switched on, the Helm Chart, on deployment, will automatically deploy a PostgreSQL instance and configure it with the credentials you specify. There are multiple ways of doing this that will be detailed below.
|
|
0 commit comments