k8s-volume

Contents

  • Volumes in Kubernetes
  • What differences between volume and persistenceVolume

Refer: Types of Kubernetes Volumes

Volumes in Kubernetes

Containers are ephemeral by design, it means that anything which is stored in container will be lost when the container is stopped.
The might cause proplems with containers that need to persist their data
(eg: database, filestorage …)

In k8s, a volume can be thought as a directory which is accesscible to the containers in a pod/