Skip to content

Empty Dir

Sometimes you need to share some data between containers, or need some scratch space. That is where an emptyDir can come in.

See the Kubernetes docs for more information.

Field Mandatory Docs / Description
medium No Set this to Memory to mount a tmpfs (RAM-backed filesystem) instead of the storage medium that backs the node.
sizeLimit No If the SizeMemoryBackedVolumes feature gate is enabled, you can specify a size for memory backed volumes.

Minimal configuration

persistence:
  config:
    enabled: true
    type: emptyDir

This will create an ephemeral emptyDir volume and mount it to /config.