Skip to content

Commit 6eada2d

Browse files
committed
Injecting resources for backstage containers
1 parent c067490 commit 6eada2d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="proc-injecting-custom-files-and-environment-variables-into-backstage-containers"]
4+
= Injecting custom files and environment variables into {backstage} containers
5+
6+
You must use the `spec.application` path to configure the injection of custom files and environment variables into your {backstage} Pod containers. This ensures necessary configurations, credentials, and dependencies (such as certificates) are available at runtime.
7+
8+
By default, resources inject into the **`backstage-backend`** container. You can also specify other targets, including a list of containers by name (such as `dynamic-plugin-install` or custom sidecars) or all containers in the {backstage} Pod.
9+
10+
.Procedure
11+
To configure resource injection, use the following fields under `spec.application`:
12+
13+
* File injection (`spec.application.extraFiles`): To define external file resources to be mounted as volumes into the targeted containers, use the following fields:
14+
** `configMaps`: Sources file volumes from Kubernetes ConfigMaps.
15+
** `secrets`: Sources file volumes from Kubernetes Secrets.
16+
** `pvcs`: Sources volume claims from Kubernetes Persistent Volume Claims (PVCs).
17+
18+
* Environment variable injection (`spec.application.extraEnvs`): To define the environment variables to be injected into the targeted containers, use the following fields:
19+
** `configMaps`: Injects environment variables sourced from Kubernetes ConfigMaps.
20+
** `secrets`: Injects environment variables sourced from Kubernetes Secrets.
21+
** `envs`: Injects hardcoded environment variables defined directly in the manifest.

titles/configuring/master.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ include::assemblies/assembly-configuring-external-postgresql-databases.adoc[leve
2828

2929
include::modules/configuring-deployment/proc-configuring-deployment-by-using-the-operator.adoc[leveloffset=+1]
3030

31+
include::modules/configuring/proc-injecting-custom-files-and-environment-variables-into-backstage-containers.adoc[leveloffset=+1]
3132

3233
include::assemblies/assembly-configuring-high-availability.adoc[leveloffset=+1]
3334

0 commit comments

Comments
 (0)