Este conteúdo não está disponível no idioma selecionado.

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
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat