feat(/dev/shm): mount /dev/shm to memory for all containers by default (#230)

* feat(/dev/shm): mount /dev/shm to memory for all containers by default

* fix tests
This commit is contained in:
Stavros Kois
2022-09-24 12:56:07 +03:00
committed by GitHub
parent 02eddac309
commit b5aeb98052
3 changed files with 17 additions and 1 deletions

View File

@@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 10.5.12
version: 10.6.0

View File

@@ -809,6 +809,20 @@ persistence:
# specify a size for memory backed volumes.
sizeLimit: # 1Gi
# -- Create an emptyDir volume to for /dev/shm
# [[ref]]https://kubernetes.io/docs/concepts/storage/volumes/#emptydir)
# @default -- See below
shm:
enabled: true
type: emptyDir
mountPath: /dev/shm
# -- Set the medium to "Memory" to mount a tmpfs (RAM-backed filesystem) instead
# of the storage medium that backs the node.
medium: Memory
# -- If the `SizeMemoryBackedVolumes` feature gate is enabled, you can
# specify a size for memory backed volumes.
sizeLimit: # 1Gi
# -- Example of a hostPath mount
# [[ref]]https://kubernetes.io/docs/concepts/storage/volumes/#hostpath)
# @default -- See below

View File

@@ -13,6 +13,8 @@ tests:
value:
- mountPath: /shared
name: shared
- mountPath: /dev/shm
name: shm
- mountPath: /tmp
name: temp
- mountPath: /var/logs