Kubernetes Persistent Volume Manifest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 25: Line 25:
{{Internal|Kubernetes_Storage_Concepts#Reclaim_Policy|Reclaim Policy}}
{{Internal|Kubernetes_Storage_Concepts#Reclaim_Policy|Reclaim Policy}}
==capacity==
==capacity==
{{External|Kubernetes_Storage_Concepts#Capacity|Capacity}}

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

Kubernetes_Storage_Concepts#Capacity