Kubernetes Persistent Volume Claim Manifest: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
=External= | |||
* https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#persistentvolumeclaim-v1-core | |||
=Internal= | =Internal= | ||
* [[Kubernetes_Storage_Concepts#Persistent_Volume_Claim_.28PVC.29|Kubernetes Storage Concepts]] | * [[Kubernetes_Storage_Concepts#Persistent_Volume_Claim_.28PVC.29|Kubernetes Storage Concepts]] | ||
=Example= | =Example= | ||
Revision as of 17:27, 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.