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
-
You can configure which containers the Persistent Volume Claim (PVC) mounts to by adding `rhdh.redhat.com/containers` to your configuration file. You can configure multiple secrets by using annotations to specify mount paths for each secretand target specific containers where the secrets should mount. Adding annotations ensures flexible storage and secrets management across different containers. The `default-config/deployment.yaml` file defines the dynamic plugins directory, as shown in the following example:
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 in the following example:
6
6
7
7
[source,yaml]
8
8
----
@@ -17,9 +17,11 @@ You can configure which containers the Persistent Volume Claim (PVC) mounts to b
17
17
name: dynamic-plugins-root
18
18
----
19
19
20
+
You can add the `rhdh.redhat.com/containers` annotation to your configuration file to specify the mount path.
21
+
20
22
.Procedure
21
23
22
-
. Specify the container where the PVC mounts by adding the `rhdh.redhat.com/mount-path` annotation to your configuration as shown in the following example:
24
+
. Specify the mount path where the PVC mounts to by adding the `rhdh.redhat.com/mount-path` annotation to your configuration as shown in the following example:
23
25
+
24
26
.Example specifying where the PVC mounts
25
27
[source,yaml,subs="+attributes,+quotes"]
@@ -33,10 +35,10 @@ metadata:
33
35
----
34
36
where:
35
37
36
-
`rhdh.redhat.com/mount-path`:: Specifies which container the PVC mounts to.
38
+
`rhdh.redhat.com/mount-path`:: Specifies which mount path the PVC mounts to.
37
39
<my_claim>:: Specifies the PVC to mount.
38
40
39
-
. Specify the container where the Secret mounts by adding the `rhdh.redhat.com/mount-path` annotation to your configuration as shown in the following example:
41
+
. 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:
40
42
+
41
43
.Example specifying where the Secret mounts
42
44
[source,yaml,subs="+attributes,+quotes"]
@@ -52,7 +54,7 @@ where:
52
54
53
55
<my_secret>:: Specifies the Secret name.
54
56
55
-
. Use the following configuration to mount PVCs to all containers:
57
+
. Use the following configuration to mount Secrets to all containers:
56
58
+
57
59
.Example configuration for mounting to all containers
0 commit comments