Kubernetes Persistent Volume Claim Manifest: Difference between revisions
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
=.spec Elements= | =.spec Elements= | ||
The values in the <code>.spec</code> section must match with the persistent volume it intends to bind with. [[# | The values in the <code>.spec</code> section must match with the persistent volume it intends to bind with. Persistent volume's [[Kubernetes_Storage_Concepts#Access_Mode|access mode]], [[#storageClassName|storage class name]] and [[Kubernetes_Storage_Concepts#Capacity|capacity]] must match. | ||
==accessModes== | ==accessModes== | ||
{{Internal|Kubernetes_Storage_Concepts#Access_Mode|Access Mode}} | {{Internal|Kubernetes_Storage_Concepts#Access_Mode|Access Mode}} |
Revision as of 05:54, 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.