May 2018
Intermediate to advanced
554 pages
13h 51m
English
Volumes are defined in the volumes section of the pod definition with unique names. Each type of volume has a different configuration to be set. Once you define the volumes, you can mount them in the volumeMounts section in the container specs. volumeMounts.name and volumeMounts.mountPath are required, which indicate the name of the volumes you defined and the mount path inside the container, respectively.
We'll use the Kubernetes configuration file with the YAML format to create a Pod with volumes in the following examples.