PersistentVolumeClaims

storageClassName can be of "slow" or "fast". "fast" is typically used with cloud providers to indicate SSD type backed storage devices.

pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: my-pvc
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: fast
  resources:
    requests:
      storage: 100Gi
  persistentVolumeReclaimPolicy: Retain

Changing PV "Reclaim Policy" to "Retain"

kubectl patch pv -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'

Last updated