Below you will find pages that utilize the taxonomy term “Persistent Volumes”
Posts
Kubernetes Volumes and Persistent Volumes Explained
Containers are ephemeral by nature, meaning data stored inside them disappears when a pod is restarted. To persist data in Kubernetes, we use Volumes and Persistent Volumes.
- Kubernetes Volumes: Basics
A Volume in Kubernetes provides storage that can be shared across containers within a pod. Unlike a container’s filesystem, a Kubernetes volume exists as long as the pod exists.
Types of Kubernetes Volumes:
Volume Type Description emptyDir Temporary storage that exists while the pod is running. hostPath Mounts a directory from the worker node’s filesystem. configMap / secret Mounts a ConfigMap or Secret as a file. persistentVolumeClaim Connects to a Persistent Volume (PV) for long-term storage.