Ephemeral storage

Warning-label

This version of Rahti is deprecated. The projects need to be migrated from Rahti 1 platform to the new Rahti 2 production platform by June 2024. Please consult the migration guide for more information.

When local ephemeral (temporal) storage is needed, an emptyDir should be issued. It is local to the node, on Rahti 1 this is RAID-0 SSD storage. It can be shared across several containers in the same Pod, and it the fastest filesystem available in Rahti 1, but it will be lost when the Pod is killed or restarted. It is declared directly in the Pod definition:

podWithEmptydDir.yaml:

apiVersion: v1
kind: Pod
metadata:
  name: my-app
  labels:
    app: my-application
  spec:
    volumes:
    - name: volume-a
      emptyDir: {}
    containers:
    - name: container-a
      image: centos:7
      volumeMounts:
      - mountPath: /outputdata
        name: volume-a
    - name: container-b
      image: centos:7
      volumeMounts:
      - mountPath: /interm
        name: volume-a

emptyDir