Kubernetes Persistent Volume Manifest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 12: Line 12:
   - RedWriteOnce
   - RedWriteOnce
   [[#storageClassName|storageClassName]]: test
   [[#storageClassName|storageClassName]]: test
   capacity:
   [[#capacity|capacity]]:
     storage: 10Gi
     storage: 10Gi
   [[#persistentVolumeReclaimPolicy|persistentVolumeReclaimPolicy]]: Retain
   [[#persistentVolumeReclaimPolicy|persistentVolumeReclaimPolicy]]: Retain

Revision as of 05:29, 10 December 2019

Internal

Example

apiVersion: v1
kind: PersistentVolume
metadata:
  name: blue
spec:
  accessModes:
  - RedWriteOnce
  storageClassName: test
  capacity:
    storage: 10Gi
  persistentVolumeReclaimPolicy: Retain
  ...

.spec Elements

accessModes

Access Mode

storageClassName

persistentVolumeReclaimPolicy

Reclaim Policy

capacity