Working with volumes
Files in a container are ephemeral. When the container is terminated, the files are gone. Docker has introduced data volumes and data volume containers to help us manage the data by mounting from the host disk directory or from other containers. However, when it comes to a container cluster, it is hard to manage volumes across hosts and their lifetime by using Docker.
Kubernetes introduces volume, which lives with a pod across container restarts. It supports the following different types of network disks:
In this section, we'll walk through the details of emptyDir, hostPath, nfs and glusterfs. Secret, which is used to store ...