Mounted files

A mounted volume gives a container access to files: the contents of a ConfigMap or Secret, a temporary folder (emptyDir) or persistent storage via a PersistentVolumeClaim. Without a persistent volume, a container's data disappears with the Pod.

Example

volumeMounts:
  - name: config
    mountPath: /etc/app

Related concepts

The whole glossary