Concept and Usage
Volumes are used to store and persist data in containers. The data will not be lost when the container is restarted or deleted. Volumes can also be used to share data between containers.Refer to Kubernetes Volume Types for the full list of supported volume types.
Example
pod-volume.yaml
/output is stored in the host path /data/output. The hostPath volume mounts a file or directory from the host node’s filesystem into the pod.