Software Containerisation

Table of Contents

Storage

Volumes

Pod hosts containers with a writable layer, which is lost if the container crashes. Volumes provide sharable storage that survives crashes, are attached to lifecycle of pod (not container).

A volume is directory that’s accessible to containers in a pod.

Types of volumes:

Persistent Volumes

Decoupled from that of pods, i.e. created independently from pods. Persistent Volume Claims express storage requirements of an app, and Kubernetes binds Persistent Volume Claims to Persistent Volumes.

PVs can be provisioned:

Reclaiming: what happens to storage and data after you delete PVC: