Recently we came across an issue, where our application running inside Kubernetes pod was running out of “shm” memory. From there we came to know Kubernetes default “shm” limit is 64mb irrespective of the size of nodes.
Until now there is no k8s configurable way to increase that. But can use the hack provided here – https://docs.okd.io/latest/dev_guide/shared_memory.html
emptyDir to “/dev/shm” and setting the medium to
Memory did the trick!
spec: volumes: - name: dshm emptyDir: medium: Memory containers: - image: imagename:latest volumeMounts: - mountPath: /dev/shm name: dshm