Este contenido no está disponible en el idioma seleccionado.

Chapter 4. Configuring readOnlyRootFilesystem in Red Hat Developer Hub


The Red Hat Developer Hub deployment consists of two containers: an initContainer that installs the Dynamic Plugins, and a backend container that runs the application. The initContainer has the readOnlyRootFilesystem option enabled by default. To enable this option on the backend container, you must either have permission to deploy resources through Helm or to create or update a CR for Operator-backed deployments. You can manually configure the readOnlyRootFilesystem option on the backend container by using the following methods:

  • The Red Hat Developer Hub Operator
  • The Red Hat Developer Hub Helm chart

When you are deploying Developer Hub using the Operator, you must specify a patch for the deployment in your Backstage custom resource (CR) that applies the readOnlyRootFilesystem option to the securityContext section in the Developer Hub backend container.

Procedure

  1. In your Backstage CR, add the securityContext specification. For example:

    spec:
      deployment:
        patch:
          spec:
            template:
              spec:
                containers:
                  - name: backstage-backend 
    1
    
                    securityContext:
                      readOnlyRootFilesystem: true
    Copy to Clipboard Toggle word wrap
    1
    Name of the main container defined in the Operator default configuration.

Procedure

  1. In your values.yaml file, add the readOnlyRootFilesystem: true line to the containerSecurityContext section. For example:

    upstream:
      backstage:
        containerSecurityContext:
          readOnlyRootFilesystem: true
    Copy to Clipboard Toggle word wrap
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat