Back to Glossary
Kubernetes

What is Volume (Kubernetes)?

A directory accessible to containers in a pod, with lifetime tied to the pod or beyond.

A Volume in Kubernetes is a directory accessible to containers in a pod. Volumes solve two problems: data sharing between containers in a pod, and data persistence beyond container restarts. Volume types range from ephemeral (emptyDir — lives with the pod) to persistent (PVC — outlives the pod). Special volumes: configMap (mounts ConfigMap as files), secret (mounts Secret as files), and projected (combines multiple sources). Unlike Docker volumes, K8s volumes are defined in the Pod spec.

Test your knowledge of Volume (Kubernetes) and 130 other DevOps concepts