Skip to content

Commit e630d46

Browse files
GitHub Actionsjmagak
GitHub Actions
authored andcommitted
Default pvc and secret config
1 parent 1f3d1d9 commit e630d46

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

assemblies/assembly-configuring-default-secret-pvc-mounts.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[id="assembly-configuring-default-secret-pvc-mounts_{context}"]
33
= Configuring default mounts for Secrets and PVCs
44

5-
You can configure where Persistent Volume Claims (PVCs) and Secrets mount in your {product} deployment. Use annotations to define the custom mount paths and specify the containers to mount them to.
5+
You can configure Persistent Volume Claims (PVCs) and Secrets mount in your {product} deployment. Use annotations to define the custom mount paths and specify the containers to mount them to.
66

77
include::modules/configuring-external-databases/proc-configuring-mount-paths.adoc[leveloffset=+1]
88

modules/configuring-external-databases/proc-configuring-mount-paths.adoc

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
[id="proc-configuring-mount-paths_{context}"]
33
= Configuring mount paths for Secrets and PVCs
44

5-
By default, the mount path is the {product-short} container's working directory. If you do not define the mount path, it defaults to `/opt/app-root/src`.
6-
7-
You can add the `rhdh.redhat.com/mount-path` annotation to specify a custom path.
5+
By default, the mount path is the working directory of the {product-short} container. If you do not define the mount path, it defaults to `/opt/app-root/src`.
86

97
.Procedure
108

@@ -23,7 +21,7 @@ metadata:
2321
where:
2422

2523
`rhdh.redhat.com/mount-path`:: Specifies which mount path the PVC mounts to (in this case, `/mount/path/from/annotation` directory).
26-
<my_claim>:: Specifies the PVC to mount.
24+
_<my_claim>_:: Specifies the PVC to mount.
2725

2826
. To specify a Secret mount path, add the `rhdh.redhat.com/mount-path` annotation to your configuration file as shown in the following example:
2927
+
@@ -39,4 +37,4 @@ metadata:
3937
----
4038
where:
4139

42-
<my_secret>:: Specifies the Secret name.
40+
_<my_secret>_:: Specifies the Secret name.

modules/configuring-external-databases/proc-mounting-to-specific-containers.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ By default, Secrets and PVCs mount only to the {product} `backstage-backend` con
66

77
.Procedure
88

9-
. To mount Secrets to *all* containers, set the `rhdh.redhat.com/containers` annotation to `*`:
9+
. To mount Secrets to *all* containers, set the `rhdh.redhat.com/containers` annotation to `*` in your configuration file:
1010
+
1111
.Example mounting to all containers
1212
[source,yaml,subs="+attributes,+quotes"]
@@ -32,12 +32,12 @@ Set `rhdh.redhat.com/containers` to `*` to mount it to all containers in the dep
3232
apiVersion: v1
3333
kind: PersistentVolumeClaim
3434
metadata:
35-
name: myclaim
35+
name: _<my_claim>_
3636
annotations:
3737
rhdh.redhat.com/containers: "init-dynamic-plugins,backstage-backend"
3838
----
3939
+
4040
[NOTE]
4141
====
42-
This configuration mounts the `myclaim` PVC to the `init-dynamic-plugins` and `backstage-backend` containers.
42+
This configuration mounts the `_<my_claim>_` PVC to the `init-dynamic-plugins` and `backstage-backend` containers.
4343
====

0 commit comments

Comments
 (0)