Persistent Volume in Kubernetes

A Persistent Volume is a cluster-wide pool of storage volumes configured by an administrator to be used by users deploying applications in the cluster.
The users can now select storage from this pool using Persistent Volume Claims.
Example:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv-vol1
spec:
  accessModes:
    - ReadWriteOnce
  capacity:
    storage: 1Gi
  hostPath:
    path: /tmp/data
The accecssModes can be: You can replace hostPath with one of suppprted storage solutions:
spec:
  awsElasticBlockStore:
    volumeID: {{ volume-id }}
    fsType: ext4
To list all created volumes run:
kubectl get pv