March 2018
Intermediate to advanced
310 pages
7h 10m
English
Persistent volumes, similar to regular volumes, allow you to define different types of persistent storage. In fact, you can use persistent volumes to define storage types analogous to regular volumes, such as node directories or remote filesystems. Then, what is the difference?
Persistent volumes are Kubernetes objects, just as pods and services are objects. Their lifecycle is not related to any of the pods. In this context, we can think about persistent modules similar to the nodes—they are part of cluster infrastructure. Let's take a look at the sample PersistentVolume:
apiVersion: v1kind: PersistentVolumemetadata://1 name: nfslabels: zone: 5//2 spec: capacity: storage: 100Mi accessModes: - ReadWriteMany ...
Read now
Unlock full access