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.
Related Terms
More Kubernetes Terms
Admission Controller
A Kubernetes plugin that intercepts API requests before objects are persisted.
Auto Scaling
Automatically adjusting the number of compute resources based on demand.
ClusterIP
The default Kubernetes Service type that exposes a service on an internal cluster IP.
ConfigMap
A Kubernetes object for storing non-sensitive configuration data as key-value pairs.
Controller Manager
Kubernetes control plane component running control loops to maintain desired state.
CoreDNS
The default DNS server in Kubernetes clusters for service discovery.
Test your knowledge of Volume (Kubernetes) and 130 other DevOps concepts