Kubernetes Persistent Volume Claim Manifest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 14: Line 14:
     [[#requests|requests]]:
     [[#requests|requests]]:
       [[#storage|storage]]: 10 Gi
       [[#storage|storage]]: 10 Gi
   ...
   ...



Revision as of 06:20, 10 December 2019

Internal

Example

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: pvc1
spec:
  accessModes:
  - RedWriteOnce
  storageClassName: test
  resources:
    requests:
      storage: 10 Gi
  ...

.spec Elements

The values in the .spec section must match with the persistent volume it intends to bind with. Persistent volume's access mode, storage class name and capacity must match.

accessModes

Access Mode

storageClassName

resources

requests

storage