Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

499
Visualizações
How to increase shm size of a kubernetes container (--shm-size equivalent of docker)

By default docker uses a shm size of 64m if not specified, but that can be increased in docker using --shm-size=256m

How should I increase shm size of a kuberenetes container or use --shm-size of docker in kuberenetes.

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

I originally bumped into this post coming from google and went through the whole kubernetes issue and openshift workaround. Only to find the much simpler solution listed on another stackoverflow answer later.

over 4 years ago · Santiago Trujillo Relatório

0

added below line in deployment.yaml and container came up for me which was failing-
basically Mounting an emptyDir to /dev/shm and setting the medium to Memory

   spec:
     containers:
       - name: solace-service
         image: solace-pubsub-standard:latest
         volumeMounts:
           - mountPath: /dev/shm
             name: dshm
         ports:
           - containerPort: 8080
     volumes:
       - name: dshm
         emptyDir:
            medium: Memory
over 4 years ago · Santiago Trujillo Relatório

0

It's not possible to do this in a kubernetes pod. See this issue

There is a workaround from openshift mentioned in the comments, but it may not be ideal

EDIT: at the time this question was asked, this was not possible. It now is, see https://stackoverflow.com/a/47921100/645002 for the correct answer

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda