What is a kubernetes persistentvolume?



  • Link: https://kubernetes.io/docs/concepts/storage/persistent-volumes/

    PersistentVolume subsystem is a API that abstracts how storage is provided from how it is consumed.

    Two new API resources facilitate this. PersistentVolume & PersistentVolumeClaim

    PersistentVolume - PV for short, Is independent of a pod using it. It is storage that's provisioned in the cluster, like NFS, iSCSI, or cloud storage.

    PersistentVolumeClaim - PVC for short, allows users to use the PV's that have been created. A choice of different types of storage should be defined via PersistentVolume's, give users options for right one to pick for the application, this is done through a StorageClass

    The PersistentVolume can be provisioned statically or dynamically. Static is via an admin who manually creates the PersistentVolume's and then it's available to the cluster. The other way is via dynamically it is defined via the StorageClass, and DefaultStorageClass that define a comma separated list of values.



© Lightnetics 2024