Kubernetes Persistent Volume Claim Manifest: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
[[Kubernetes_Manifest_Metadata#Overview|metadata]]: | [[Kubernetes_Manifest_Metadata#Overview|metadata]]: | ||
[[Kubernetes_Manifest_Metadata#name|name]]: pvc1 | [[Kubernetes_Manifest_Metadata#name|name]]: pvc1 | ||
[[Kubernetes_Manifests#spec|spec]]: | <span id='manifest_spec'></span>[[Kubernetes_Manifests#spec|spec]]: | ||
[[#accessModes|accessModes]]: | [[#accessModes|accessModes]]: | ||
- RedWriteOnce | - RedWriteOnce |
Revision as of 06:38, 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.