Skip to content

Commit a72b142

Browse files
author
GitHub Actions
committed
Configuring default configuration
1 parent 29a824f commit a72b142

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

modules/configuring-external-databases/proc-configuring-default-configuration-for-secrets-and-pvcs.adoc

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,7 @@
22
[id="proc-default-configuration-for-secrets-and-pvcs_{context}"]
33
= Configuring default configuration for Secrets and PVCs
44

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.
216

227
.Procedure
238

@@ -35,7 +20,7 @@ metadata:
3520
----
3621
where:
3722

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).
3924
<my_claim>:: Specifies the PVC to mount.
4025

4126
. 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:
5944
.Example configuration for mounting to all containers
6045
[source,yaml,subs="+attributes,+quotes"]
6146
----
47+
apiVersion: v1
48+
kind: Secret
6249
metadata:
6350
name: _<my_secret>_
6451
annotations:
@@ -70,7 +57,7 @@ metadata:
7057
Set `rhdh.redhat.com/containers` to `*` to mount it to all containers in the deployment.
7158
====
7259

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:
7461
+
7562
.Example configuration for separating the list of containers
7663
[source,yaml,subs="+attributes,+quotes"]
@@ -81,4 +68,4 @@ metadata:
8168
name: myclaim
8269
annotations:
8370
rhdh.redhat.com/containers: "init-dynamic-plugins,backstage-backend"
84-
----
71+
----

0 commit comments

Comments
 (0)