Skip to main content

Volume_Types

Volume Types

There are several types of volumes. Some local, some network.

in GCE/AWS, you can use volumes of types GCEpersistentDisk or awsElasticBlockStore which mount GCE or EBS disks in the Pods.

emptyDir and hostPath are easy-to-use volumes.

hostPath mounts a resource from the host node filesystem. There are two types which create resources on the host and use them if they don't exist already:

  • DirectoryOrCreate
  • FileOrCreate