Kubernetes Persistent Volume Claim Manifest: Difference between revisions
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
{{Internal|Kubernetes_Storage_Concepts#Access_Mode|Access Mode}} | {{Internal|Kubernetes_Storage_Concepts#Access_Mode|Access Mode}} | ||
==storageClassName== | ==storageClassName== | ||
{{External|https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1}} | |||
Name of the StorageClass required by the claim. It is optional, [[#volumeMode|volumeMode]] can be used instead. | |||
==volumeMode== | |||
==resources== | ==resources== | ||
===requests=== | ===requests=== | ||
====storage==== | ====storage==== |
Revision as of 17:43, 11 December 2019
External
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
storageClassName
Name of the StorageClass required by the claim. It is optional, volumeMode can be used instead.