By default, Secrets and PVCs mount only to the {product} backstage-backend
container. You can add the rhdh.redhat.com/containers
annotation to your configuration file to specify the containers to mount to.
Procedure
-
To mount Secrets to all containers, set the
rhdh.redhat.com/containers
annotation to*
in your configuration file:Example mounting to all containersapiVersion: v1 kind: Secret metadata: name: <my_secret> annotations: rhdh.redhat.com/containers: *
ImportantSet
rhdh.redhat.com/containers
to*
to mount it to all containers in the deployment. -
To mount to specific containers, separate the names with commas:
Example separating the list of containersapiVersion: v1 kind: PersistentVolumeClaim metadata: name: <my_claim> annotations: rhdh.redhat.com/containers: "init-dynamic-plugins,backstage-backend"
NoteThis configuration mounts the
<my_claim>
PVC to theinit-dynamic-plugins
andbackstage-backend
containers.