Skip to content

Latest commit

 

History

History
43 lines (39 loc) · 1.23 KB

proc-mounting-to-specific-containers.adoc

File metadata and controls

43 lines (39 loc) · 1.23 KB

Mounting Secrets and PVCs to specific containers

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
  1. To mount Secrets to all containers, set the rhdh.redhat.com/containers annotation to * in your configuration file:

    Example mounting to all containers
    apiVersion: v1
    kind: Secret
    metadata:
      name: <my_secret>
      annotations:
        rhdh.redhat.com/containers: *
    Important

    Set rhdh.redhat.com/containers to * to mount it to all containers in the deployment.

  2. To mount to specific containers, separate the names with commas:

    Example separating the list of containers
    apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
      name: <my_claim>
      annotations:
        rhdh.redhat.com/containers: "init-dynamic-plugins,backstage-backend"
    Note

    This configuration mounts the <my_claim> PVC to the init-dynamic-plugins and backstage-backend containers.