|
3 | 3 | [id="con-mounting-and-container-targeting-details_context"] |
4 | 4 | = Mounting and Container Targeting Details |
5 | 5 |
|
6 | | -The mounting behavior is determined by the combination of the optional `key` and `mountPath` fields. Use the `containers` field (available since `v1alpha4`/`v0.8`) to specify targets other than the default container. |
| 6 | +The mounting behavior is determined by the combination of the optional `key` and `mountPath` fields. Use the `containers` field (available since `v1alpha4`/`v1.8`) to specify targets other than the default container. |
7 | 7 |
|
8 | 8 | .Container targeting options |
9 | 9 | |=== |
10 | 10 | | Configuration | Target Containers |
11 | 11 |
|
12 | 12 | | No or empty `containers` field |
13 | | -| Only the **`backstage-backend`** container (default). |
| 13 | +| Only the `backstage-backend` container (default). |
14 | 14 |
|
15 | 15 | | `containers: ["*"]` |
16 | | -| **All** containers in the Pod. |
| 16 | +| All containers in the Pod. |
17 | 17 |
|
18 | 18 | | Explicit container names |
19 | | -| Only the containers listed (e.g., `backstage-backend`, `install-dynamic-plugins`). |
20 | | -|=== |
21 | | - |
22 | | -.File mounting behavior |
23 | | - |
24 | | -[cols="1,1,1", options="header"] |
25 | | -|=== |
26 | | -| Configuration | Mounting Behavior | Watch/Update Status |
27 | | - |
28 | | -| Nothing specified |
29 | | -| Each key/value mounts as filename/content with `subPath`. |
30 | | -| Resources are watched by the Operator and the Pod is refreshed on change. |
31 | | - |
32 | | -| `key` specified (with or without `mountPath`) |
33 | | -| The specified key/value mounts with `subPath`. |
34 | | -| Resources are watched by the Operator. |
35 | | - |
36 | | -| Only `mountPath` specified |
37 | | -| A directory containing all key/values mounts without `subPath`. |
38 | | -| Related resources are typically auto-updated by Kubernetes. |
39 | | -|=== |
40 | | - |
41 | | -[NOTE] |
42 | | -==== |
43 | | -For security reasons, mounting files from **Secrets** is not supported if both `mountPath` and `key` are unspecified. |
44 | | -==== |
45 | | - |
46 | | -.PersistentVolumeClaim (PVC) path logic |
47 | | - |
48 | | -PVCs mount as a directory. The mount path is determined by the first available value in the following order: |
49 | | - |
50 | | -. `spec.application.extraFiles.pvcs[].mountPath` (Specific path for the PVC). |
51 | | -. `spec.application.extraFiles.mountPath` (Default path for all extra files). |
52 | | -. The {backstage} container `WorkingDir`. |
53 | | -. The default Kubernetes path: `/opt/app-root/src`. |
| 19 | +| Only the containers listed (for example, `backstage-backend`, `install-dynamic-plugins`). |
| 20 | +|=== |
0 commit comments