Kubernetes Persistent Volume Manifest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:
   [[#accessModes|accessModes]]:
   [[#accessModes|accessModes]]:
   - RedWriteOnce
   - RedWriteOnce
   storageClassName: test
   [[#storageClassName|storageClassName]]: test
   capacity:
   capacity:
     storage: 10Gi
     storage: 10Gi
Line 20: Line 20:
==accessModes==
==accessModes==
{{Internal|Kubernetes_Storage_Concepts#Access_Mode|Access Mode}}
{{Internal|Kubernetes_Storage_Concepts#Access_Mode|Access Mode}}
==storageClassName==

Revision as of 05:21, 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