PersistentVolume and PersistentVolumeClaim

If you want to use persistent volumes, independent of the specific location where you have built your cluster, you probably want to take advantage of two newer Kubernetes resources: PersistentVolume and PersistentVolumeClaim. These separate the specifics of how volumes are provided and allow you to specify more of how you expect those volumes to be used, with both falling under the idea of dynamic volume provisioning—meaning that when you deploy your code into Kubernetes, the system should make any persistent volumes available from disks that have already been identified. The Kubernetes administrator will need to specify at least one, and possibly more, storage classes, which are used to define the ...

Get Kubernetes for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.