Kubernetes (k8s) docker modify / dev / shm size

First, the problem

/ Dev / shm too, want expansion. But failed expansion

Second, analysis

Kubernetes does not support this operation. Default 64M

Third, the solution

Built under / dev / shm empty folders, and medium to Memory

spec:
  volumes:
  - name: dshm
    emptyDir:
      medium: Memory
  containers:
  - image: gcr.io/project/image
    volumeMounts:
      - mountPath: /dev/shm
        name: dshm

reference

Guess you like

Origin www.cnblogs.com/diffx/p/11005799.html
Recommended