It is a type of volume is created when a Pod isfirst assigned to a Node. It remains active as long asthe Pod isrunningonthat node. The volume is initially empty andthe containers inthe pod can readandwritethe files inthe emptyDir volume. Once the Pod is removed fromthe node, the data inthe emptyDir is erased.
hostPath:
1
This type of volume mounts afileordirectoryfromthe host node's filesystem into your pod.
gcePersistentDisk
1
Thistype of volume mounts a GoogleComputeEngine (GCE) PersistentDisk into your Pod. Thedata in gcePersistentDisk remains intact when the Pod is removed from the node.
awsElasticBlockStore
1
This type of volume mounts an Amazon Web Services (AWS) Elastic Block Store into your Pod. Just like gcePersistentDisk, the data inan awsElasticBlockStore remains intact when the Pod is removed fromthe node.
nfs
1
An nfs volume allows an existing NFS (Network File System) to be mounted into your Pod. the data in an nfs volume isnot erased when the Pod is removed from the node. The volume isonly unmounted