Here is a list of some popular Kubernetes Volumes −ĮmptyDir − It is a type of volume that is created when a Pod is first assigned to a Node. A key advantage of Kubernetes volume is, it supports different kind of storage wherein the pod can use multiple of them at the same time. It supports any or all the containers deployed inside the pod of Kubernetes. On the other hand, the volumes that are created through Kubernetes is not limited to any container. As soon as the life of a pod ended, the volume was also lost. The concept of volume was present with the Docker, however the only issue was that the volume was very much limited to a particular pod. We have different types of volumes in Kubernetes and the type defines how the volume is created and its content.
In Kubernetes, a volume can be thought of as a directory which is accessible to the containers in a pod.