#persistence volumen (PV) is a piece of storage that have idependent lifecycle from pods 
#thees preserve data throug restartin, rescheduling and even deleting pods
#PersistenceVolumeCalin is a request for storage by the user that can be fulfilled by teh PV
kind: PersistentVolume
#version of ApiServer on control panel node (/api/v1) check using kubectl api-versions
apiVersion: v1
metadata:
  name: mysql-volume
  labels:
    #it is aplugin suport many luke amazon EBS azure disk etc.  local = local storage devices mounted on nodes.
    type: local
    app: mysql
spec:
  #storageClassName: manual
  capacity:
    storage: 2Gi
    #many pods on shcheduled on differents nodes can read and write
  accessModes:
    - ReadWriteMany
    #path on cluster's node
  hostPath:
    path: "/mnt/data/"