You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Configuring default configuration for Secrets and PVCs
4
4
5
-
By default, the mount path is the {product-short} container's working directory, and if you do not define the mount path, it defaults to `/opt/app-root/src`. `app-config`, `configmap-files`, `secret-files`, `dynamic-plugins`, and PVCs mount to the container as either files or directories. The `default-config/deployment.yaml` file defines the dynamic plugins directory, as shown:
6
-
7
-
[source,yaml]
8
-
----
9
-
- ephemeral:
10
-
volumeClaimTemplate:
11
-
spec:
12
-
accessModes:
13
-
- ReadWriteOnce
14
-
resources:
15
-
requests:
16
-
storage: 2Gi
17
-
name: dynamic-plugins-root
18
-
----
19
-
20
-
You can add the `rhdh.redhat.com/containers` annotation to your configuration file to specify the mount path.
5
+
By default, the mount path is the {product-short} container's working directory, and if you do not define the mount path, it defaults to `/opt/app-root/src`. The default configuration files are `secret-files` and PVCs. You can add the `rhdh.redhat.com/mount-path` annotation to your configuration file to specify the mount path.
21
6
22
7
.Procedure
23
8
@@ -35,7 +20,7 @@ metadata:
35
20
----
36
21
where:
37
22
38
-
`rhdh.redhat.com/mount-path`:: Specifies which mount path the PVC mounts to.
23
+
`rhdh.redhat.com/mount-path`:: Specifies which mount path the PVC mounts to (in this case, `/mount/path/from/annotation` directory).
39
24
<my_claim>:: Specifies the PVC to mount.
40
25
41
26
. Specify the mount path where the Secret mounts to by adding the `rhdh.redhat.com/mount-path` annotation to your configuration as shown in the following example:
@@ -59,6 +44,8 @@ where:
59
44
.Example configuration for mounting to all containers
60
45
[source,yaml,subs="+attributes,+quotes"]
61
46
----
47
+
apiVersion: v1
48
+
kind: Secret
62
49
metadata:
63
50
name: _<my_secret>_
64
51
annotations:
@@ -70,7 +57,7 @@ metadata:
70
57
Set `rhdh.redhat.com/containers` to `*` to mount it to all containers in the deployment.
71
58
====
72
59
73
-
. Optional: Use commas to separate the list of containers to mount to as shown in the following example:
60
+
. Optional: Use commas to separate the list of containers (for example, `init-dynamic-plugins` and `,backstage-backend`) where the files mount to as shown in the following example:
74
61
+
75
62
.Example configuration for separating the list of containers
0 commit comments