|
| 1 | +:_mod-docs-content-type: REFERENCE |
| 2 | + |
| 3 | +[id="rhdh-default-configuration"] |
| 4 | += {product} default configuration guide |
| 5 | + |
| 6 | +The {product} ({product-very-short}) Operator creates a set of Kubernetes resources to deploy and manage a {backstage} instance. The default configuration for these resources is defined at the Operator level and can be customized for a specific instance using the {backstage} Custom Resource (CR). This approach gives you a clear starting point while offering flexibility to tailor each deployment. |
| 7 | + |
| 8 | +The default configuration is stored in a ConfigMap named `rhdh-default-config` located in the namespace of the Operator which is by default, `rhdh-operator` on OpenShift. This ConfigMap contains the YAML manifests that define the foundational structure of the {product-very-short} instance. |
| 9 | + |
| 10 | +The default configuration defines the set of resources the Operator should create and manage when the user applies an empty {product-custom-resource-type} Custom Resource as shown in the following example: |
| 11 | + |
| 12 | +[source,yaml] |
| 13 | +---- |
| 14 | +`apiVersion: backstage.redhat.com/v1alpha4 |
| 15 | +kind: Backstage |
| 16 | +metadata: |
| 17 | +name: my-rhdh-instance |
| 18 | +namespace: rhdh |
| 19 | +---- |
| 20 | + |
| 21 | +The following is the list of resources created in the specified {product-very-short}namespace by default based on the default configuration: |
| 22 | + |
| 23 | +.Floating action button parameters |
| 24 | +|=== |
| 25 | +| File Name | Resource GVK | Resource Name | Description |
| 26 | + |
| 27 | +| `deployment.yaml` |
| 28 | +| apps/v1/Deployment |
| 29 | +| backstage-{cr-name} |
| 30 | +| (Mandatory) The main Backstage application deployment. |
| 31 | + |
| 32 | +| `service.yaml` |
| 33 | +| v1/Service |
| 34 | +| backstage-{cr-name} |
| 35 | +| (Mandatory) The Backstage application service. |
| 36 | + |
| 37 | +| `db-statefulset.yaml` |
| 38 | +| apps/v1/StatefulSet |
| 39 | +| backstage-psql-{cr-name} |
| 40 | +| The PostgreSQL database stateful set. Needed if `spec.enabledDb=true`. |
| 41 | + |
| 42 | +| `db-service.yaml` |
| 43 | +| v1/Service |
| 44 | +| backstage-psql-{cr-name} |
| 45 | +| The PostgreSQL database service. Needed if `spec.enabledDb=true`. |
| 46 | + |
| 47 | +| `db-secret.yaml` |
| 48 | +| v1/Secret |
| 49 | +| backstage-psql-{cr-name} |
| 50 | +| The PostgreSQL database credentials secret. Needed if `spec.enabledDb=true`. |
| 51 | + |
| 52 | +| `route.yaml` |
| 53 | +| route.openshift.io/v1 |
| 54 | +| backstage-{cr-name} |
| 55 | +| The OpenShift Route to expose Backstage externally. (Optional) Applied to Openshift only. |
| 56 | + |
| 57 | +| `{my-app-config-file}` |
| 58 | +| v1/ConfigMap |
| 59 | +| backstage-config-{cr-name} |
| 60 | +| (Optional) Specifies one or more {product-custom-resource-type} `{my-app-config-file}` files. |
| 61 | + |
| 62 | +| `configmap-files.yaml` |
| 63 | +| v1/ConfigMap |
| 64 | +| backstage-files-{cr-name} |
| 65 | +| (Optional) Specifies additional ConfigMaps to be mounted as files into {product-custom-resource-type} Pod. |
| 66 | + |
| 67 | +| `configmap-envs.yaml` |
| 68 | +| v1/ConfigMap |
| 69 | +| backstage-envs-{cr-name} |
| 70 | +| (Optional) Specifies additional ConfigMaps to be exposed as environment variables into {product-custom-resource-type} Pod. |
| 71 | + |
| 72 | +| `secret-files.yaml` |
| 73 | +| v1/Secret or list of v1/Secret |
| 74 | +| backstage-files-{cr-name}-{secret-name} |
| 75 | +| (Optional) Specifies additional Secrets to be mounted as files into {product-custom-resource-type} Pod. |
| 76 | + |
| 77 | +| `secret-envs.yaml` |
| 78 | +| v1/Secret or list of v1/Secret |
| 79 | +| backstage-envs-{cr-name} |
| 80 | +| (Optional) Specifies additional Secrets to be exposed as environment variables into {product-custom-resource-type} Pod. |
| 81 | + |
| 82 | +| `dynamic-plugins.yaml` |
| 83 | +| v1/ConfigMap |
| 84 | +| backstage-dynamic-plugins-{cr-name} |
| 85 | +| (Optional) Specifies dynamic plugins to be installed into {product-custom-resource-type} instance. |
| 86 | + |
| 87 | +| `pvcs.yaml` |
| 88 | +| list of v1/PersistentVolumeClaim |
| 89 | +| backstage-{cr-name}-{pvc-name} |
| 90 | +| (Optional) The Persistent Volume Claim for PostgreSQL database. |
| 91 | +|=== |
| 92 | + |
| 93 | +[NOTE] |
| 94 | +==== |
| 95 | +The {cr-name} is the name of the {product-custom-resource-type} Custom Resource, for example 'my-rhdh-instance' in the above example. |
| 96 | +It is not expected that the user manages these resources manually. The Operator takes care of creating, updating and deleting them as necessary. |
| 97 | +==== |
0 commit comments