Ce contenu n'est pas disponible dans la langue sélectionnée.

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
Retour au début
Red Hat logoGithubredditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

Theme

© 2025 Red Hat